Class RecoveryXAResourceHolder

All Implemented Interfaces:
XAResourceHolder, XAStatefulHolder

public class RecoveryXAResourceHolder extends AbstractXAResourceHolder
XAResourceHolder created by an XAResourceProducer that is used to perform recovery. Objects of this class cannot be used outside recovery scope.
Author:
lorban
  • Constructor Details

    • RecoveryXAResourceHolder

      public RecoveryXAResourceHolder(XAResourceHolder xaResourceHolder)
  • Method Details

    • close

      public void close() throws Exception
      Description copied from interface: XAStatefulHolder
      Close the physical connection that this XAStatefulHolder represents.
      Throws:
      Exception - a resource-specific exception thrown when there is an error closing the physical connection.
    • getLastReleaseDate

      public Date getLastReleaseDate()
      Description copied from interface: XAStatefulHolder
      Get 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

      public XAResource getXAResource()
      Description copied from interface: XAResourceHolder
      Get the vendor's XAResource implementation of the wrapped resource.
      Returns:
      the vendor's XAResource implementation.
    • getResourceBean

      public ResourceBean getResourceBean()
      Description copied from interface: XAResourceHolder
      Get the ResourceBean which created this XAResourceHolder.
      Returns:
      the ResourceBean which created this XAResourceHolder.
    • getXAResourceHolders

      public List<XAResourceHolder> getXAResourceHolders()
      Description copied from interface: XAStatefulHolder
      Get the list of XAResourceHolders created by this XAStatefulHolder that are still open.

      This method is thread-safe.

      Returns:
      the list of XAResourceHolders created by this XAStatefulHolder that are still open.
    • getConnectionHandle

      public Object getConnectionHandle() throws Exception
      Description copied from interface: XAStatefulHolder
      Create a disposable handler used to drive a pooled instance of XAStatefulHolder.

      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.