public class ClientEventListener extends ConnectionEventListener
| Constructor and Description |
|---|
ClientEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
Event whenever a connect attempt failed.
|
void |
onConnectStart()
Event whenever a new connection attempt is made.
|
void |
onConnectSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event whenever a new connection is successfully established.
|
void |
onPoolAcquireFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
Event whenever an acquire from the pool failed.
|
void |
onPoolAcquireStart()
Event whenever an acquire from the pool is initiated.
|
void |
onPoolAcquireSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event whenever an acquire from the pool is successful.
|
void |
onPooledConnectionEviction()
Event whenever an idle connection is removed/evicted from the pool.
|
void |
onPooledConnectionReuse()
Event whenever a connection is reused from the pool.
|
void |
onPoolReleaseFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
Event whenever a connection release to pool fails.
|
void |
onPoolReleaseStart()
Event whenever a connection release to the pool is initiated (by closing the connection)
|
void |
onPoolReleaseSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
Event whenever a connection is successfully released to the pool.
|
onByteRead, onByteWritten, onCompleted, onConnectionCloseFailed, onConnectionCloseStart, onConnectionCloseSuccess, onCustomEvent, onCustomEvent, onCustomEvent, onCustomEvent, onFlushComplete, onFlushStart, onWriteFailed, onWriteStart, onWriteSuccesspublic void onConnectStart()
public void onConnectSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Duration between connect start and completion.timeUnit - Timeunit for the duration.public void onConnectFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
duration - Duration between connect start and failure.timeUnit - Timeunit for the duration.throwable - Error that caused the failure.public void onPoolReleaseStart()
public void onPoolReleaseSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Duration between release start and completion.timeUnit - Timeunit for the duration.public void onPoolReleaseFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
duration - Duration between release start and failure.timeUnit - Timeunit for the duration.throwable - Error that caused the failure.public void onPooledConnectionEviction()
public void onPooledConnectionReuse()
public void onPoolAcquireStart()
public void onPoolAcquireSuccess(long duration,
java.util.concurrent.TimeUnit timeUnit)
duration - Duration between acquire start and completion.timeUnit - Timeunit for the duration.public void onPoolAcquireFailed(long duration,
java.util.concurrent.TimeUnit timeUnit,
java.lang.Throwable throwable)
duration - Duration between acquire start and failure.timeUnit - Timeunit for the duration.throwable - Error that caused the failure.