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 | Field and Description |
|---|---|
static int |
CHECKIN |
static int |
CHECKOUT |
static int |
INIT_COMPLETED |
static int |
MAX_POOL_LIMIT_EXCEEDED |
static int |
MAX_POOL_LIMIT_REACHED |
static int |
MAX_SIZE_LIMIT_ERROR |
static int |
MAX_SIZE_LIMIT_REACHED |
static int |
PARAMETERS_CHANGED |
static int |
POOL_FLUSHED |
static int |
POOL_RELEASED |
static int |
VALIDATION_ERROR |
source| Constructor and Description |
|---|
ObjectPoolEvent(ObjectPool<T> pool,
int 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() |
int |
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 static final int INIT_COMPLETED
public static final int CHECKOUT
public static final int CHECKIN
public static final int VALIDATION_ERROR
public static final int MAX_POOL_LIMIT_REACHED
public static final int MAX_POOL_LIMIT_EXCEEDED
public static final int MAX_SIZE_LIMIT_REACHED
public static final int MAX_SIZE_LIMIT_ERROR
public static final int PARAMETERS_CHANGED
public static final int POOL_FLUSHED
public static final int POOL_RELEASED
public ObjectPoolEvent(ObjectPool<T> pool, int type)
PoolEvent.pool - ObjectPool for which to create eventtype - type of event to createpublic ObjectPool<T> getPool()
public int 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 © 2014. All rights reserved.