public class ClientTransactionManager extends Object
Constructor and Description |
---|
ClientTransactionManager(HazelcastClientInstanceImpl client) |
Modifier and Type | Method and Description |
---|---|
void |
addManagedTransaction(Xid xid,
com.hazelcast.client.txn.TransactionProxy transaction) |
<T> T |
executeTransaction(TransactionalTask<T> task) |
<T> T |
executeTransaction(TransactionOptions options,
TransactionalTask<T> task) |
HazelcastClientInstanceImpl |
getClient() |
String |
getGroupName() |
com.hazelcast.client.txn.TransactionProxy |
getManagedTransaction(Xid xid) |
TransactionContext |
newTransactionContext() |
TransactionContext |
newTransactionContext(TransactionOptions options) |
Xid[] |
recover() |
boolean |
recover(Xid xid,
boolean commit) |
void |
removeManagedTransaction(Xid xid) |
void |
shutdown() |
public ClientTransactionManager(HazelcastClientInstanceImpl client)
public HazelcastClientInstanceImpl getClient()
public String getGroupName()
public TransactionContext newTransactionContext()
public TransactionContext newTransactionContext(TransactionOptions options)
public <T> T executeTransaction(TransactionalTask<T> task) throws TransactionException
TransactionException
public <T> T executeTransaction(TransactionOptions options, TransactionalTask<T> task) throws TransactionException
TransactionException
public void addManagedTransaction(Xid xid, com.hazelcast.client.txn.TransactionProxy transaction)
public com.hazelcast.client.txn.TransactionProxy getManagedTransaction(Xid xid)
public void removeManagedTransaction(Xid xid)
public Xid[] recover()
public boolean recover(Xid xid, boolean commit)
public void shutdown()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.