public class ApiCMTProxyPool extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addCMTProxyInCMTPool(String mTransactionHandle,
ApiProxyI apiProxyI,
ApiUserContextI apiUserContextI,
String arProxyName,
String cmd,
ApiProxyType proxyType)
add the proxy that handles the client managed transaction in it's pool
this method should only be called in beginClientManagedTransaction before releaseProxy().
|
void |
cleanUpTimeoutCMTFromCMTPool()
Clean up timeout CMT.
|
ApiProxyI |
getCMTProxyFromCMTPool(String mTransactionHandle,
ApiUserContextI apiUserContextI,
String arProxyName,
String cmd,
ApiProxyType proxyType)
If multiple clients use the same transaction, they must use the same connection serially
getClientManagedTransactionInPool will lock the key, releaseClientManagedTransactionInPool will release the key
|
boolean |
releaseCMTProxyBackInCMTPool(String mTransactionHandle,
ApiProxyI apiProxyI,
ApiUserContextI apiUserContextI,
String arProxyName,
String cmd,
ApiProxyType proxyType)
release the proxy that handles the client managed transaction back into it's pool
1.
|
boolean |
removeCMTProxyFromCMTPool(String mTransactionHandle,
ApiProxyI apiProxyI,
ApiUserContextI apiUserContextI,
String arProxyName,
String cmd,
ApiProxyType proxyType)
this method should only be called in endClientManagedTransaction before releaseProxy().
|
public void addCMTProxyInCMTPool(String mTransactionHandle, ApiProxyI apiProxyI, ApiUserContextI apiUserContextI, String arProxyName, String cmd, ApiProxyType proxyType) throws ARException
mTransactionHandle - apiProxyI - sharedSocket - apiUserContextI - arProxyName - cmd - proxyType - ARExceptionpublic boolean removeCMTProxyFromCMTPool(String mTransactionHandle, ApiProxyI apiProxyI, ApiUserContextI apiUserContextI, String arProxyName, String cmd, ApiProxyType proxyType) throws ARException
mTransactionHandle - apiProxyI - apiUserContextI - arProxyName - cmd - proxyType - ARExceptionpublic ApiProxyI getCMTProxyFromCMTPool(String mTransactionHandle, ApiUserContextI apiUserContextI, String arProxyName, String cmd, ApiProxyType proxyType) throws ARException
mTransactionHandle - apiUserContextI - apiProxyI - arProxyName - cmd - proxyType - ARExceptionpublic boolean releaseCMTProxyBackInCMTPool(String mTransactionHandle, ApiProxyI apiProxyI, ApiUserContextI apiUserContextI, String arProxyName, String cmd, ApiProxyType proxyType)
mTransactionHandle - apiProxyI - apiUserContextI - arProxyName - cmd - proxyType - ARExceptionpublic void cleanUpTimeoutCMTFromCMTPool()
? Copyright 2013 BMC Software, Inc.