public interface IConnectionThrottler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static int |
CONNECTION_FROM_CREATION
Create a connection
|
static int |
CONNECTION_FROM_NOWHERE
Pool shutting down
|
static int |
CONNECTION_FROM_POOL
Get the connection from the pool
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkDestroyPooledConnection()
This method calculates whether a connection should be taken from the pool and destroyed
/* in order to meet quota requirements.
|
boolean |
checkExpireConnection()
Connection expiration is tricky, because even though a connection may be identified as
being expired, at the very same moment it could be handed out in another thread.
|
IFetchThrottler |
getNewConnectionFetchThrottler()
For a new connection, obtain the fetch throttler to use for the connection.
|
void |
noteConnectionDestroyed()
Note that a connection has been destroyed.
|
void |
noteConnectionReturnedToPool()
Note that a connection has been returned to the pool.
|
boolean |
noteReturnedConnection()
This method indicates whether a formerly in-use connection should be placed back
in the pool or destroyed.
|
int |
waitConnectionAvailable()
Get permission to grab a connection for use.
|
int |
waitConnectionAvailable(IBreakCheck breakCheck)
Get permission to grab a connection for use.
|
static final java.lang.String _rcsid
static final int CONNECTION_FROM_POOL
static final int CONNECTION_FROM_CREATION
static final int CONNECTION_FROM_NOWHERE
int waitConnectionAvailable() throws java.lang.InterruptedException
java.lang.InterruptedException
int waitConnectionAvailable(IBreakCheck breakCheck) throws java.lang.InterruptedException, BreakException
java.lang.InterruptedException
BreakException
IFetchThrottler getNewConnectionFetchThrottler()
boolean noteReturnedConnection()
boolean checkDestroyPooledConnection()
boolean checkExpireConnection()
void noteConnectionReturnedToPool()
void noteConnectionDestroyed()