public interface XAResourceHolder extends XAStatefulHolder
XAResource wrappers must implement this interface. It defines a way to get access to the transactional
state of this XAResourceHolder.XAResourceHolderStateSTATE_ACCESSIBLE, STATE_CLOSED, STATE_IN_POOL, STATE_NOT_ACCESSIBLE| Modifier and Type | Method and Description |
|---|---|
ResourceBean |
getResourceBean()
Get the ResourceBean which created this XAResourceHolder.
|
javax.transaction.xa.XAResource |
getXAResource()
Get the vendor's
XAResource implementation of the wrapped resource. |
java.util.Map<Uid,XAResourceHolderState> |
getXAResourceHolderStatesForGtrid(Uid gtrid)
Get all the
XAResourceHolderStates of this wrapped resource for a specific GTRID. |
boolean |
hasStateForXAResource(XAResourceHolder xaResourceHolder)
Check if this
XAResourceHolder contains a state for a specific XAResourceHolder. |
void |
putXAResourceHolderState(BitronixXid xid,
XAResourceHolderState xaResourceHolderState)
Add a
XAResourceHolderState of this wrapped resource. |
void |
removeXAResourceHolderState(BitronixXid xid)
Remove all states related to a specific Xid from this wrapped resource.
|
addStateChangeEventListener, close, getConnectionHandle, getLastReleaseDate, getState, getXAResourceHolders, removeStateChangeEventListener, setStatejavax.transaction.xa.XAResource getXAResource()
XAResource implementation of the wrapped resource.java.util.Map<Uid,XAResourceHolderState> getXAResourceHolderStatesForGtrid(Uid gtrid)
XAResourceHolderStates of this wrapped resource for a specific GTRID.
The returned Map is guaranteed to return states in order they were added when its values are iterated.
gtrid - the GTRID of the transaction state to add.XAResourceHolderState.void putXAResourceHolderState(BitronixXid xid, XAResourceHolderState xaResourceHolderState)
XAResourceHolderState of this wrapped resource.xid - the Xid of the transaction state to add.xaResourceHolderState - the XAResourceHolderState to set.void removeXAResourceHolderState(BitronixXid xid)
xid - the Xid of the transaction state to remove.boolean hasStateForXAResource(XAResourceHolder xaResourceHolder)
XAResourceHolder contains a state for a specific XAResourceHolder.
In other words: has the XAResourceHolder's XAResource been enlisted in some transaction ?xaResourceHolder - the XAResourceHolder to look for.XAResourceHolder is enlisted in some transaction, false otherwise.ResourceBean getResourceBean()
Copyright © 2006-2019 Bitronix Software. All Rights Reserved.