T - class type of referring ObjectPoolpublic class ObjectPoolEvent<T extends Reusable> extends EventObject
ObjectPool instances.
Convenience methods are available for determining the type of the event,
and the event is capable of keeping shadow copies of the pool's vital
parameters at the time the event was issued, for reference to listeners.| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectPoolEvent.Type
Enumeration of event types.
|
source| Constructor and Description |
|---|
ObjectPoolEvent(ObjectPool<T> pool,
ObjectPoolEvent.Type type)
Creates a new
PoolEvent. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCheckedOut() |
int |
getFreeCount() |
long |
getIdleTimeout() |
int |
getMaxPool() |
int |
getMaxSize() |
int |
getMinPool() |
ObjectPool<T> |
getPool()
Returns the pool for which this event was created.
|
float |
getPoolHitRate() |
int |
getSize() |
ObjectPoolEvent.Type |
getType()
Returns the type of event this object represents.
|
String |
getTypeString()
Returns the type of event this object represents as a string.
|
boolean |
isMaxPoolLimitExceeded() |
boolean |
isMaxPoolLimitReached() |
boolean |
isMaxSizeLimitError() |
boolean |
isMaxSizeLimitReached() |
boolean |
isPoolCheckIn() |
boolean |
isPoolCheckOut() |
boolean |
isPoolFlushed() |
boolean |
isPoolInitCompleted() |
boolean |
isPoolParametersChanged() |
boolean |
isPoolReleased() |
boolean |
isValidationError() |
String |
toString() |
getSourcepublic ObjectPoolEvent(ObjectPool<T> pool, ObjectPoolEvent.Type type)
PoolEvent.pool - ObjectPool for which to create eventtype - type of event to createpublic ObjectPool<T> getPool()
public ObjectPoolEvent.Type getType()
public String getTypeString()
public String toString()
toString in class EventObjectpublic boolean isPoolInitCompleted()
public boolean isPoolCheckOut()
public boolean isPoolCheckIn()
public boolean isValidationError()
public boolean isMaxPoolLimitReached()
public boolean isMaxPoolLimitExceeded()
public boolean isMaxSizeLimitReached()
public boolean isMaxSizeLimitError()
public boolean isPoolParametersChanged()
public boolean isPoolFlushed()
public boolean isPoolReleased()
public int getMinPool()
public int getMaxPool()
public int getMaxSize()
public long getIdleTimeout()
public int getCheckedOut()
public int getFreeCount()
public int getSize()
public float getPoolHitRate()
Copyright © 2016. All rights reserved.