public class PoolLifeCycleListenerRegistry extends Object implements PoolLifeCycleListener
| Modifier and Type | Field and Description |
|---|---|
protected List<PoolLifeCycleListener> |
poolListenersList |
| Constructor and Description |
|---|
PoolLifeCycleListenerRegistry(PoolInfo poolInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionAcquired(long resourceHandleId)
indicates that a connection is acquired by application
|
void |
connectionCreated()
indicates that a new connection is created
|
void |
connectionDestroyed(long resourceHandleId)
indicates that a connection is destroyed
|
void |
connectionMatched()
indicates that a connection under test matches the current request
|
void |
connectionNotMatched()
indicates that a connection under test does not match the current request
|
void |
connectionReleased(long resourceHandleId)
indicates that a connection is released
|
void |
connectionRequestDequeued()
indicates that the wait queue length has decreased.
|
void |
connectionRequestQueued()
indicates that the wait queue length has increased.
|
void |
connectionRequestServed(long timeTakenInMillis)
indicates that a connection request is server in the time
|
void |
connectionsFreed(int count)
indicates the number of connections freed to pool
|
void |
connectionTimedOut()
indicates that a connection is timed-out
|
void |
connectionUsed(long resourceHandleId)
indicates that a connection is being used
|
void |
connectionValidationFailed(int count)
indicates that a number of connections have failed validation
|
void |
decrementConnectionUsed(long resourceHandleId)
indicates that connection count that is used has to be decremented.
|
void |
decrementNumConnFree()
indicates that free connections count in the pool has to be decremented.
|
void |
foundPotentialConnectionLeak()
indicates that a potential connection leak happened
|
void |
incrementNumConnFree(boolean beingDestroyed,
int steadyPoolSize)
indicates that a connection is freed and the count is to be incremented.
|
void |
registerPoolLifeCycleListener(PoolLifeCycleListener listener)
Add a listener to the list of pool life cycle listeners maintained by
this registry.
|
void |
toString(StringBuilder stackTrace)
Print stack trace in server.log
|
void |
unRegisterPoolLifeCycleListener(PoolInfo poolInfo)
Clear the list of pool lifecycle listeners maintained by the registry.
|
protected List<PoolLifeCycleListener> poolListenersList
public PoolLifeCycleListenerRegistry(PoolInfo poolInfo)
public void registerPoolLifeCycleListener(PoolLifeCycleListener listener)
listener - public void unRegisterPoolLifeCycleListener(PoolInfo poolInfo)
poolName - public void toString(StringBuilder stackTrace)
PoolLifeCycleListenertoString in interface PoolLifeCycleListenerpublic void connectionAcquired(long resourceHandleId)
PoolLifeCycleListenerconnectionAcquired in interface PoolLifeCycleListenerpublic void connectionRequestServed(long timeTakenInMillis)
PoolLifeCycleListenerconnectionRequestServed in interface PoolLifeCycleListenertimeTakenInMillis - time taken to serve a connectionpublic void connectionTimedOut()
PoolLifeCycleListenerconnectionTimedOut in interface PoolLifeCycleListenerpublic void connectionNotMatched()
PoolLifeCycleListenerconnectionNotMatched in interface PoolLifeCycleListenerpublic void connectionMatched()
PoolLifeCycleListenerconnectionMatched in interface PoolLifeCycleListenerpublic void connectionUsed(long resourceHandleId)
PoolLifeCycleListenerconnectionUsed in interface PoolLifeCycleListenerpublic void connectionDestroyed(long resourceHandleId)
PoolLifeCycleListenerconnectionDestroyed in interface PoolLifeCycleListenerpublic void connectionReleased(long resourceHandleId)
PoolLifeCycleListenerconnectionReleased in interface PoolLifeCycleListenerpublic void connectionCreated()
PoolLifeCycleListenerconnectionCreated in interface PoolLifeCycleListenerpublic void foundPotentialConnectionLeak()
PoolLifeCycleListenerfoundPotentialConnectionLeak in interface PoolLifeCycleListenerpublic void connectionValidationFailed(int count)
PoolLifeCycleListenerconnectionValidationFailed in interface PoolLifeCycleListenercount - number of connectionspublic void connectionsFreed(int count)
PoolLifeCycleListenerconnectionsFreed in interface PoolLifeCycleListenercount - number of connectionspublic void decrementConnectionUsed(long resourceHandleId)
PoolLifeCycleListenerdecrementConnectionUsed in interface PoolLifeCycleListenerpublic void decrementNumConnFree()
PoolLifeCycleListenerdecrementNumConnFree in interface PoolLifeCycleListenerpublic void incrementNumConnFree(boolean beingDestroyed,
int steadyPoolSize)
PoolLifeCycleListenerincrementNumConnFree in interface PoolLifeCycleListenerbeingDestroyed - in case of an error.public void connectionRequestQueued()
PoolLifeCycleListenerconnectionRequestQueued in interface PoolLifeCycleListenerpublic void connectionRequestDequeued()
PoolLifeCycleListenerconnectionRequestDequeued in interface PoolLifeCycleListenerCopyright © 2019. All rights reserved.