Interface TransactedPoolManager

  • All Known Subinterfaces:
    PoolManager
    All Known Implementing Classes:
    AbstractPoolManager, PoolManagerImpl

    @Contract
    public interface TransactedPoolManager
    TransactedPoolManager manages jdbc and connector connection pool
    Author:
    Jagadish Ramu
    • Method Detail

      • resourceEnlisted

        void resourceEnlisted​(jakarta.transaction.Transaction tran,
                              ResourceHandle res)
                       throws IllegalStateException
        Indicate that a resource is enlisted.
        Parameters:
        tran - Transaction to which the resource is enlisted
        res - Resource that is enlisted
        Throws:
        IllegalStateException - when unable to enlist the resource
      • registerResource

        void registerResource​(ResourceHandle handle)
                       throws PoolingException
        registers the provided resource with the component & enlists the resource in the transaction
        Parameters:
        handle - resource-handle
        Throws:
        PoolingException - when unable to register the resource
      • unregisterResource

        void unregisterResource​(ResourceHandle resource,
                                int xaresFlag)
        unregisters the resource from the component and delists the resource from the transaction
        Parameters:
        resource - resource-handle
        xaresFlag -