Methods Summary |
---|
public void | delist()Delist the managed connection
|
public void | enlist()Enlist the managed connection
|
public java.lang.Object | getContext()Retrieve the context used by the pool
|
public long | getLastValidatedTime()Retrieve the last time this connection was validated.
|
public javax.resource.spi.ManagedConnection | getManagedConnection()Retrieve the managed connection for this listener
|
public ManagedConnectionPool | getManagedConnectionPool()Retrieve the managed connection pool for this listener
|
public int | getState()Retrieve the state of this connection
|
public void | grantPermit(boolean value)Tell the connection listener whether it owns the permit.
|
public boolean | hasPermit()Whether the connection has a permit
|
public boolean | isManagedConnectionFree()Is the managed connection free?
|
public boolean | isTimedOut(long timeout)Has the connection timed out?
|
public boolean | isTrackByTx()Get whether the listener is track by transaction
|
public void | registerConnection(java.lang.Object handle)Register a new connection
|
public void | setLastValidatedTime(long interval)Set the last time, in milliseconds, that this connection was validated.
|
public void | setState(int newState)Set the state of this connection
|
public void | setTrackByTx(boolean trackByTx)Set whether the listener is track by transaction
|
public void | tidyup()Tidyup
Invoked just before returning the connection to the pool
when the connection is not being destroyed
|
public void | unregisterConnection(java.lang.Object handle)Unregister a connection
|
public void | used()Mark the connection as used
|