|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A jboss connection listener
Field Summary | |
static int |
DESTROY
Destroy this connection |
static int |
DESTROYED
This connection has been destroyed |
static int |
NORMAL
Normal state |
Method Summary | |
void |
delist()
Delist the managed connection |
void |
enlist()
Enlist the managed connection |
Object |
getContext()
Retrieve the context used by the pool |
javax.resource.spi.ManagedConnection |
getManagedConnection()
Retrieve the managed connection for this listener |
ManagedConnectionPool |
getManagedConnectionPool()
Retrieve the managed connection pool for this listener |
int |
getState()
Retrieve the state of this connection |
void |
grantPermit(boolean value)
Tell the connection listener whether it owns the permit. |
boolean |
hasPermit()
Whether the connection has a permit |
boolean |
isManagedConnectionFree()
Is the managed connection free? |
boolean |
isTimedOut(long timeout)
Has the connection timed out? |
boolean |
isTrackByTx()
Get whether the listener is track by transaction |
void |
registerConnection(Object handle)
Register a new connection |
void |
setState(int newState)
Set the state of this connection |
void |
setTrackByTx(boolean trackByTx)
Set whether the listener is track by transaction |
void |
unregisterConnection(Object handle)
Unregister a connection |
void |
used()
Mark the connection as used |
Methods inherited from interface javax.resource.spi.ConnectionEventListener |
connectionClosed, connectionErrorOccurred, localTransactionCommitted, localTransactionRolledback, localTransactionStarted |
Field Detail |
public static final int NORMAL
public static final int DESTROY
public static final int DESTROYED
Method Detail |
public javax.resource.spi.ManagedConnection getManagedConnection()
public ManagedConnectionPool getManagedConnectionPool()
public Object getContext()
public int getState()
public void setState(int newState)
public boolean isTimedOut(long timeout)
timeout
- the timeout
public void used()
public void registerConnection(Object handle)
handle
- the connection handlepublic void unregisterConnection(Object handle)
handle
- the connection handlepublic boolean isManagedConnectionFree()
public void enlist() throws SystemException
SystemException
public void delist() throws javax.resource.ResourceException
javax.resource.ResourceException
public boolean isTrackByTx()
public void setTrackByTx(boolean trackByTx)
trackByTx
- true for track by transaction, false otherwisepublic boolean hasPermit()
public void grantPermit(boolean value)
value
- true for owning the permit, false otherwise
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |