JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
void
After acquiring or creating a new netty channel from pool successfully.
void
After acquiring or creating a new netty channel from pool regardless it is successful or not.
void
After a netty channel is closed successfully.
void
After acquiring or creating a new netty channel from pool successfully.
void
After releasing a netty channel back to pool successfully.
void
After a netty channel is created successfully.
void
After a netty channel is created with a failure.
void
void
Before acquiring or creating a new netty channel from pool.
void
Before creating a netty channel.
void
void
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Method Details
values
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum class has no constant with the specified name
NullPointerException
- if the argument is null
beforeCreating
Before creating a netty channel.
Specified by:
beforeCreating
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
creatingEvent
- a connection listener event registered when a connection is creating.
afterCreated
After a netty channel is created successfully.
Specified by:
afterCreated
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
afterFailedToCreate
public void afterFailedToCreate (String poolId)
After a netty channel is created with a failure.
Specified by:
afterFailedToCreate
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
afterClosed
public void afterClosed (String poolId)
After a netty channel is closed successfully.
Specified by:
afterClosed
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
beforeAcquiringOrCreating
Before acquiring or creating a new netty channel from pool.
Specified by:
beforeAcquiringOrCreating
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
acquireEvent
- a pool listener event registered in pool for this acquire event.
afterAcquiringOrCreating
public void afterAcquiringOrCreating (String poolId)
After acquiring or creating a new netty channel from pool regardless it is successful or not.
Specified by:
afterAcquiringOrCreating
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
afterAcquiredOrCreated
After acquiring or creating a new netty channel from pool successfully.
Specified by:
afterAcquiredOrCreated
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
acquireEvent
- a pool listener event registered in pool for this acquire event.
afterConnectionCreated
After acquiring or creating a new netty channel from pool successfully.
Specified by:
afterConnectionCreated
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
inUseEvent
- a connection listener event fired from the newly created connection.
afterConnectionReleased
After releasing a netty channel back to pool successfully.
Specified by:
afterConnectionReleased
in interface MetricsListener
Parameters:
poolId
- the id of the pool where the netty channel lives.
inUseEvent
- a connection listener event fired from the connection being released.