Package bitronix.tm.resource.common
Class RecoveryXAResourceHolder
java.lang.Object
bitronix.tm.resource.common.AbstractXAStatefulHolder
bitronix.tm.resource.common.AbstractXAResourceHolder
bitronix.tm.resource.common.RecoveryXAResourceHolder
- All Implemented Interfaces:
XAResourceHolder,XAStatefulHolder
XAResourceHolder created by an XAResourceProducer that is
used to perform recovery. Objects of this class cannot be used outside recovery scope.- Author:
- lorban
-
Field Summary
Fields inherited from interface bitronix.tm.resource.common.XAStatefulHolder
STATE_ACCESSIBLE, STATE_CLOSED, STATE_IN_POOL, STATE_NOT_ACCESSIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the physical connection that thisXAStatefulHolderrepresents.Create a disposable handler used to drive a pooled instance ofXAStatefulHolder.Get the date at which this object was last released to the pool.Get the ResourceBean which created this XAResourceHolder.Get the vendor'sXAResourceimplementation of the wrapped resource.Get the list ofXAResourceHolders created by thisXAStatefulHolderthat are still open.Methods inherited from class bitronix.tm.resource.common.AbstractXAResourceHolder
getXAResourceHolderStateGtrids, getXAResourceHolderStatesForGtrid, hasStateForXAResource, isParticipatingInActiveGlobalTransaction, putXAResourceHolderState, removeXAResourceHolderStateMethods inherited from class bitronix.tm.resource.common.AbstractXAStatefulHolder
addStateChangeEventListener, getState, removeStateChangeEventListener, setStateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface bitronix.tm.resource.common.XAStatefulHolder
addStateChangeEventListener, getState, removeStateChangeEventListener, setState
-
Constructor Details
-
RecoveryXAResourceHolder
-
-
Method Details
-
close
Description copied from interface:XAStatefulHolderClose the physical connection that thisXAStatefulHolderrepresents.- Throws:
Exception- a resource-specific exception thrown when there is an error closing the physical connection.
-
getLastReleaseDate
Description copied from interface:XAStatefulHolderGet the date at which this object was last released to the pool. This is required to check if it is eligible for discard when the containing pool needs to shrink.- Returns:
- the date at which this object was last released to the pool or null if it never left the pool.
-
getXAResource
Description copied from interface:XAResourceHolderGet the vendor'sXAResourceimplementation of the wrapped resource.- Returns:
- the vendor's XAResource implementation.
-
getResourceBean
Description copied from interface:XAResourceHolderGet the ResourceBean which created this XAResourceHolder.- Returns:
- the ResourceBean which created this XAResourceHolder.
-
getXAResourceHolders
Description copied from interface:XAStatefulHolderGet the list ofXAResourceHolders created by thisXAStatefulHolderthat are still open.This method is thread-safe.
- Returns:
- the list of
XAResourceHolders created by thisXAStatefulHolderthat are still open.
-
getConnectionHandle
Description copied from interface:XAStatefulHolderCreate a disposable handler used to drive a pooled instance ofXAStatefulHolder.This method is thread-safe.
- Returns:
- a resource-specific disaposable connection object.
- Throws:
Exception- a resource-specific exception thrown when the disaposable connection cannot be created.
-