com.hazelcast.client.txn
Class ClientTransactionManager

java.lang.Object
  extended by com.hazelcast.client.txn.ClientTransactionManager

public class ClientTransactionManager
extends Object


Constructor Summary
ClientTransactionManager(HazelcastClientInstanceImpl client)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientTransactionManager

public ClientTransactionManager(HazelcastClientInstanceImpl client)
Method Detail

getClient

public HazelcastClientInstanceImpl getClient()

getGroupName

public String getGroupName()

newTransactionContext

public TransactionContext newTransactionContext()

newTransactionContext

public TransactionContext newTransactionContext(TransactionOptions options)

executeTransaction

public <T> T executeTransaction(TransactionalTask<T> task)
                     throws TransactionException
Throws:
TransactionException

executeTransaction

public <T> T executeTransaction(TransactionOptions options,
                                TransactionalTask<T> task)
                     throws TransactionException
Throws:
TransactionException

addManagedTransaction

public void addManagedTransaction(Xid xid,
                                  com.hazelcast.client.txn.TransactionProxy transaction)

getManagedTransaction

public com.hazelcast.client.txn.TransactionProxy getManagedTransaction(Xid xid)

removeManagedTransaction

public void removeManagedTransaction(Xid xid)

recover

public Xid[] recover()

recover

public boolean recover(Xid xid,
                       boolean commit)

shutdown

public void shutdown()


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.