com.hazelcast.transaction.client
Class BaseTransactionRequest

java.lang.Object
  extended by com.hazelcast.client.impl.client.ClientRequest
      extended by com.hazelcast.client.impl.client.CallableClientRequest
          extended by com.hazelcast.transaction.client.BaseTransactionRequest
All Implemented Interfaces:
SecureRequest, Portable, VersionedPortable, Callable
Direct Known Subclasses:
AbstractTxnMapRequest, CommitTransactionRequest, CreateTransactionRequest, PrepareTransactionRequest, RollbackTransactionRequest, TxnCollectionRequest, TxnMultiMapRequest, TxnOfferRequest, TxnPeekRequest, TxnPollRequest, TxnSizeRequest

public abstract class BaseTransactionRequest
extends CallableClientRequest


Field Summary
protected  long clientThreadId
           
protected  String txnId
           
 
Fields inherited from class com.hazelcast.client.impl.client.ClientRequest
callId, clientEngine, endpoint, operationService, serializationService, service
 
Constructor Summary
BaseTransactionRequest()
           
 
Method Summary
 Object call()
           
protected abstract  Object innerCall()
           
 void read(PortableReader reader)
           
 void setClientThreadId(long clientThreadId)
           
 void setTxnId(String txnId)
           
 void write(PortableWriter writer)
           
 
Methods inherited from class com.hazelcast.client.impl.client.CallableClientRequest
process
 
Methods inherited from class com.hazelcast.client.impl.client.ClientRequest
getCallId, getClassVersion, getClientEngine, getDistributedObjectName, getDistributedObjectType, getEndpoint, getMethodName, getParameters, getService, getServiceName, isSingleConnection, readPortable, setCallId, setClientEngine, setEndpoint, setOperationService, setSerializationService, setService, setSingleConnection, writePortable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.client.impl.client.SecureRequest
getRequiredPermission
 
Methods inherited from interface com.hazelcast.nio.serialization.Portable
getClassId, getFactoryId
 

Field Detail

txnId

protected String txnId

clientThreadId

protected long clientThreadId
Constructor Detail

BaseTransactionRequest

public BaseTransactionRequest()
Method Detail

innerCall

protected abstract Object innerCall()
                             throws Exception
Throws:
Exception

call

public final Object call()
                  throws Exception
Throws:
Exception

setTxnId

public void setTxnId(String txnId)

setClientThreadId

public void setClientThreadId(long clientThreadId)

write

public void write(PortableWriter writer)
           throws IOException
Overrides:
write in class ClientRequest
Throws:
IOException

read

public void read(PortableReader reader)
          throws IOException
Overrides:
read in class ClientRequest
Throws:
IOException


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