com.hazelcast.map.impl.tx
Class TxnPrepareBackupOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.map.impl.operation.KeyBasedMapOperation
          extended by com.hazelcast.map.impl.tx.TxnPrepareBackupOperation
All Implemented Interfaces:
DataSerializable, BackupOperation, RemotePropagatable<Operation>, PartitionAwareOperation

public class TxnPrepareBackupOperation
extends KeyBasedMapOperation
implements BackupOperation

An operation to prepare transaction by locking the key on key backup owner.


Field Summary
 
Fields inherited from class com.hazelcast.map.impl.operation.KeyBasedMapOperation
dataKey, dataValue, mapContainer, mapService, name, partitionContainer, recordStore, threadId, ttl
 
Constructor Summary
  TxnPrepareBackupOperation()
           
protected TxnPrepareBackupOperation(String name, Data dataKey, String lockOwner, long lockThreadId)
           
 
Method Summary
 Object getResponse()
           
protected  void readInternal(ObjectDataInput in)
           
 void run()
           
protected  void writeInternal(ObjectDataOutput out)
           
 
Methods inherited from class com.hazelcast.map.impl.operation.KeyBasedMapOperation
afterRun, beforeRun, evict, getKey, getName, getThreadId, getTtl, getValue, innerBeforeRun, invalidateNearCaches, returnsResponse, setThreadId
 
Methods inherited from class com.hazelcast.spi.Operation
getCallerAddress, getCallerUuid, getCallId, getCallTimeout, getConnection, getExecutorName, getInvocationTime, getLogger, getNodeEngine, getPartitionId, getReplicaIndex, getResponseHandler, getService, getServiceName, getWaitTimeout, isUrgent, logError, onException, readData, setCallerUuid, setExecutorName, setNodeEngine, setPartitionId, setReplicaIndex, setResponseHandler, setService, setServiceName, setValidateTarget, setWaitTimeout, toString, validatesTarget, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hazelcast.spi.PartitionAwareOperation
getPartitionId
 

Constructor Detail

TxnPrepareBackupOperation

protected TxnPrepareBackupOperation(String name,
                                    Data dataKey,
                                    String lockOwner,
                                    long lockThreadId)

TxnPrepareBackupOperation

public TxnPrepareBackupOperation()
Method Detail

run

public void run()
         throws Exception
Specified by:
run in class Operation
Throws:
Exception

getResponse

public Object getResponse()
Specified by:
getResponse in class Operation

writeInternal

protected void writeInternal(ObjectDataOutput out)
                      throws IOException
Overrides:
writeInternal in class KeyBasedMapOperation
Throws:
IOException

readInternal

protected void readInternal(ObjectDataInput in)
                     throws IOException
Overrides:
readInternal in class KeyBasedMapOperation
Throws:
IOException


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