| org.jboss.resource.connectionmanager.ConnectionListener
ConnectionListener | public interface ConnectionListener extends ConnectionEventListener(Code) | | A jboss connection listener
author: Adrian Brock author: Weston Price version: $Revision: 57189 $ |
DESTROY | final public static int DESTROY(Code) | | Destroy this connection
|
DESTROYED | final public static int DESTROYED(Code) | | This connection has been destroyed
|
NORMAL | final public static int NORMAL(Code) | | Normal state
|
delist | void delist() throws ResourceException(Code) | | Delist the managed connection
|
enlist | void enlist() throws SystemException(Code) | | Enlist the managed connection
|
getContext | Object getContext()(Code) | | Retrieve the context used by the pool
the context |
getLastValidatedTime | long getLastValidatedTime()(Code) | | Retrieve the last time this connection was validated.
the last time the connection was validated |
getManagedConnection | ManagedConnection getManagedConnection()(Code) | | Retrieve the managed connection for this listener
the managed connection |
getManagedConnectionPool | ManagedConnectionPool getManagedConnectionPool()(Code) | | Retrieve the managed connection pool for this listener
the managed connection pool |
getState | int getState()(Code) | | Retrieve the state of this connection
the state |
grantPermit | void grantPermit(boolean value)(Code) | | Tell the connection listener whether it owns the permit.
Parameters: value - true for owning the permit, false otherwise |
hasPermit | boolean hasPermit()(Code) | | Whether the connection has a permit
true when it has permit, false otherwise |
isManagedConnectionFree | boolean isManagedConnectionFree()(Code) | | Is the managed connection free?
true when it is free |
isTimedOut | boolean isTimedOut(long timeout)(Code) | | Has the connection timed out?
Parameters: timeout - the timeout true for timed out, false otherwise |
isTrackByTx | boolean isTrackByTx()(Code) | | Get whether the listener is track by transaction
true for track by transaction, false otherwise |
registerConnection | void registerConnection(Object handle)(Code) | | Register a new connection
Parameters: handle - the connection handle |
setLastValidatedTime | void setLastValidatedTime(long interval)(Code) | | Set the last time, in milliseconds, that this connection was validated.
Parameters: interval - the last time the connection was validated in milliseconds. |
setState | void setState(int newState)(Code) | | Set the state of this connection
|
setTrackByTx | void setTrackByTx(boolean trackByTx)(Code) | | Set whether the listener is track by transaction
Parameters: trackByTx - true for track by transaction, false otherwise |
tidyup | void tidyup() throws ResourceException(Code) | | Tidyup
Invoked just before returning the connection to the pool
when the connection is not being destroyed
throws: ResourceException - for any error |
unregisterConnection | void unregisterConnection(Object handle)(Code) | | Unregister a connection
Parameters: handle - the connection handle |
used | void used()(Code) | | Mark the connection as used
|
|
|