Interface TransactionalResource

  • All Known Implementing Classes:
    AssocWithThreadResourceHandle, ResourceHandle

    public interface TransactionalResource
    TransactionalResource interface to be implemented by the resource handlers to be able to communicate with used the transaction manager components
    Author:
    Marina Vatkina
    • Method Detail

      • isTransactional

        boolean isTransactional()
      • isEnlistmentSuspended

        boolean isEnlistmentSuspended()
      • supportsXA

        boolean supportsXA()
      • getComponentInstance

        Object getComponentInstance()
      • setComponentInstance

        void setComponentInstance​(Object instance)
      • isEnlisted

        boolean isEnlisted()
      • isShareable

        boolean isShareable()
      • destroyResource

        void destroyResource()
      • getName

        String getName()
        Returns:
        the String that can identify this resource
      • enlistedInTransaction

        void enlistedInTransaction​(jakarta.transaction.Transaction tran)
                            throws IllegalStateException
        Indicates that a resource has been enlisted in the transaction.
        Parameters:
        tran - Transaction to which the resource is enlisted
        Throws:
        IllegalStateException - when unable to enlist the resource