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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
registerResource(ResourceHandle handle)
registers the provided resource with the component & enlists the resource in the transactionvoid
resourceEnlisted(jakarta.transaction.Transaction tran, ResourceHandle res)
Indicate that a resource is enlisted.void
unregisterResource(ResourceHandle resource, int xaresFlag)
unregisters the resource from the component and delists the resource from the transaction
-
-
-
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 enlistedres
- 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-handlexaresFlag
-
-
-