public class ClientTransactionManagerServiceImpl extends Object implements ClientTransactionManagerService
Constructor and Description |
---|
ClientTransactionManagerServiceImpl(HazelcastClientInstanceImpl client,
LoadBalancer loadBalancer) |
Modifier and Type | Method and Description |
---|---|
ClientConnection |
connect() |
<T> T |
executeTransaction(TransactionalTask<T> task) |
<T> T |
executeTransaction(TransactionOptions options,
TransactionalTask<T> task) |
HazelcastClientInstanceImpl |
getClient() |
String |
getGroupName() |
TransactionContext |
newTransactionContext() |
TransactionContext |
newTransactionContext(TransactionOptions options) |
TransactionContext |
newXATransactionContext(Xid xid,
int timeoutInSeconds) |
void |
shutdown() |
public ClientTransactionManagerServiceImpl(HazelcastClientInstanceImpl client, LoadBalancer loadBalancer)
public HazelcastClientInstanceImpl getClient()
public TransactionContext newTransactionContext()
newTransactionContext
in interface ClientTransactionManagerService
public TransactionContext newTransactionContext(TransactionOptions options)
newTransactionContext
in interface ClientTransactionManagerService
public <T> T executeTransaction(TransactionalTask<T> task) throws TransactionException
executeTransaction
in interface ClientTransactionManagerService
TransactionException
public <T> T executeTransaction(TransactionOptions options, TransactionalTask<T> task) throws TransactionException
executeTransaction
in interface ClientTransactionManagerService
TransactionException
public TransactionContext newXATransactionContext(Xid xid, int timeoutInSeconds)
newXATransactionContext
in interface ClientTransactionManagerService
xid
- branch qualifiertimeoutInSeconds
- transaction timeout in secondsTransactionContext
for the supplied branch qualifierpublic void shutdown()
shutdown
in interface ClientTransactionManagerService
public String getGroupName()
getGroupName
in interface ClientTransactionManagerService
public ClientConnection connect() throws Exception
Exception
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.