|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.client.txn.TransactionContextProxy
public class TransactionContextProxy
Constructor Summary | |
---|---|
TransactionContextProxy(ClientTransactionManager transactionManager,
TransactionOptions options)
|
Method Summary | ||
---|---|---|
void |
beginTransaction()
Begins a transaction. |
|
void |
commitTransaction()
Commits a transaction. |
|
HazelcastClientInstanceImpl |
getClient()
|
|
ClientConnection |
getConnection()
|
|
|
getList(String name)
Returns the transactional list instance with the specified name. |
|
|
getMap(String name)
Returns the transactional distributed map instance with the specified name. |
|
|
getMultiMap(String name)
Returns the transactional multimap instance with the specified name. |
|
|
getQueue(String name)
Returns the transactional queue instance with the specified name. |
|
|
getSet(String name)
Returns the transactional set instance with the specified name. |
|
|
getTransactionalObject(String serviceName,
String name)
|
|
ClientTransactionManager |
getTransactionManager()
|
|
String |
getTxnId()
Gets the id that uniquely identifies the transaction. |
|
XAResource |
getXaResource()
Gets xaResource which will participate in XATransaction |
|
boolean |
isXAManaged()
Indicates that related transaction is managed by XAResource |
|
void |
rollbackTransaction()
Rollback of the current transaction. |
|
boolean |
setTransactionTimeout(int seconds)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionContextProxy(ClientTransactionManager transactionManager, TransactionOptions options)
Method Detail |
---|
public String getTxnId()
TransactionContext
getTxnId
in interface TransactionContext
public void beginTransaction()
TransactionContext
beginTransaction
in interface TransactionContext
public void commitTransaction() throws TransactionException
TransactionContext
commitTransaction
in interface TransactionContext
TransactionException
- if no transaction is active or the transaction could not be committed.public void rollbackTransaction()
TransactionContext
rollbackTransaction
in interface TransactionContext
public <K,V> TransactionalMap<K,V> getMap(String name)
TransactionalTaskContext
getMap
in interface TransactionalTaskContext
name
- name of the distributed map
public <E> TransactionalQueue<E> getQueue(String name)
TransactionalTaskContext
getQueue
in interface TransactionalTaskContext
name
- name of the queue
public <K,V> TransactionalMultiMap<K,V> getMultiMap(String name)
TransactionalTaskContext
getMultiMap
in interface TransactionalTaskContext
name
- name of the multimap
public <E> TransactionalList<E> getList(String name)
TransactionalTaskContext
getList
in interface TransactionalTaskContext
name
- name of the list
public <E> TransactionalSet<E> getSet(String name)
TransactionalTaskContext
getSet
in interface TransactionalTaskContext
name
- name of the set
public <T extends TransactionalObject> T getTransactionalObject(String serviceName, String name)
getTransactionalObject
in interface TransactionalTaskContext
public ClientConnection getConnection()
public HazelcastClientInstanceImpl getClient()
public ClientTransactionManager getTransactionManager()
public XAResource getXaResource()
TransactionContext
getXaResource
in interface TransactionContext
public boolean isXAManaged()
TransactionContext
isXAManaged
in interface TransactionContext
public boolean setTransactionTimeout(int seconds)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |