public class PoolTxHelper extends Object
| Constructor and Description |
|---|
PoolTxHelper(PoolInfo poolInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLocalResourceEligibleForReuse(ResourceHandle h)
Check whether the local resource can be put back to pool
If true, unenlist the resource
|
boolean |
isLocalResourceInTransaction(ResourceHandle h)
Check whether the local resource in question is the one participating in transaction.
|
boolean |
isLocalTransactionInProgress()
Check whether a local transaction is in progress.
|
boolean |
isNonXAResource(ResourceHandle resource)
Check whether the resource is non-xa
|
boolean |
isNonXAResourceAndFree(JavaEETransaction tran,
ResourceHandle resource)
Check whether the resource is non-xa, free and is enlisted in transaction.
|
void |
resourceEnlisted(Transaction tran,
ResourceHandle resource)
this method is called when a resource is enlisted in
transation tran
|
List<ResourceHandle> |
transactionCompleted(Transaction tran,
int status,
PoolInfo poolInfo)
this method is called when transaction tran is completed
|
protected static final Logger _logger
public PoolTxHelper(PoolInfo poolInfo)
public boolean isLocalResourceEligibleForReuse(ResourceHandle h)
h - ResourceHandle to be verifiedpublic boolean isLocalTransactionInProgress()
public boolean isLocalResourceInTransaction(ResourceHandle h)
h - ResourceHandlepublic boolean isNonXAResource(ResourceHandle resource)
resource - Resource to be verifiedpublic boolean isNonXAResourceAndFree(JavaEETransaction tran, ResourceHandle resource)
tran - Transactionresource - Resource to be verifiedpublic void resourceEnlisted(Transaction tran, ResourceHandle resource)
tran - Transaction to which the resource need to be enlistedresource - Resource to be enlisted in the transactionpublic List<ResourceHandle> transactionCompleted(Transaction tran, int status, PoolInfo poolInfo)
tran - transaction which has completedstatus - transaction statuspoolInfo - Pool nameCopyright © 2017. All rights reserved.