public interface ResourcePool
| Modifier and Type | Method and Description |
|---|---|
void |
blockRequests(long waitTimeout)
block any new requests to the pool
Used for transparent dynamic reconfiguration of the pool
|
void |
cancelResizerTask() |
void |
emptyFreeConnectionsInPool() |
void |
emptyPool() |
boolean |
flushConnectionPool()
Flush Connection pool by reinitializing the connections
established in the pool.
|
int |
getMaxPoolSize()
Gets the max-pool-size attribute of this pool.
|
PoolInfo |
getPoolInfo() |
PoolStatus |
getPoolStatus() |
PoolWaitQueue |
getPoolWaitQueue()
returns pool-wait-queue
|
PoolWaitQueue |
getReconfigWaitQueue()
returns wait-queue used during transparent dynamic reconfiguration
|
long |
getReconfigWaitTime()
returns the reconfig-wait-time
|
ResourceHandle |
getResource(ResourceSpec spec,
ResourceAllocator alloc,
Transaction tran) |
int |
getSteadyPoolSize()
Gets the steady-pool-size attribute of this pool.
|
void |
reconfigurePool(ConnectorConnectionPool ccp) |
void |
removePoolLifeCycleListener()
remove pool life cycle listener
|
void |
resizePool(boolean forced) |
void |
resourceClosed(ResourceHandle resource) |
void |
resourceEnlisted(Transaction tran,
ResourceHandle resource) |
void |
resourceErrorOccurred(ResourceHandle resource) |
void |
setMaxPoolSize(int size)
Sets the max-pool-size value for this pool.
|
void |
setPoolLifeCycleListener(PoolLifeCycleListener listener)
set pool life cycle listener
|
void |
setSelfManaged(boolean selfManaged)
Sets/Resets the flag indicating if this pool is self managed.
|
void |
setSteadyPoolSize(int size)
Sets the steady-pool-size value for this pool.
|
void |
switchOnMatching() |
void |
transactionCompleted(Transaction tran,
int status) |
ResourceHandle getResource(ResourceSpec spec, ResourceAllocator alloc, Transaction tran) throws PoolingException, javax.resource.spi.RetryableUnavailableException
PoolingExceptionjavax.resource.spi.RetryableUnavailableExceptionvoid resourceClosed(ResourceHandle resource)
void resourceErrorOccurred(ResourceHandle resource)
void resourceEnlisted(Transaction tran, ResourceHandle resource)
PoolStatus getPoolStatus()
void transactionCompleted(Transaction tran, int status)
void resizePool(boolean forced)
void emptyPool()
void reconfigurePool(ConnectorConnectionPool ccp) throws PoolingException
PoolingExceptionvoid cancelResizerTask()
void switchOnMatching()
PoolInfo getPoolInfo()
void emptyFreeConnectionsInPool()
int getMaxPoolSize()
setMaxPoolSizeint getSteadyPoolSize()
setSteadyPoolSizevoid setMaxPoolSize(int size)
size - - The new max-pool-size valuegetMaxPoolSizevoid setSteadyPoolSize(int size)
size - - The new steady-pool-size valuegetSteadyPoolSizevoid setSelfManaged(boolean selfManaged)
selfManaged - - true to switch on self management, false otherwisevoid setPoolLifeCycleListener(PoolLifeCycleListener listener)
listener - void removePoolLifeCycleListener()
boolean flushConnectionPool()
throws PoolingException
PoolingExceptionvoid blockRequests(long waitTimeout)
waitTimeout - time for which the new requests will waitPoolWaitQueue getPoolWaitQueue()
PoolWaitQueue getReconfigWaitQueue()
long getReconfigWaitTime()
Copyright © 2017. All rights reserved.