com.hazelcast.concurrent.atomiclong.operations
Class AlterAndGetOperation

java.lang.Object
  extended by com.hazelcast.spi.Operation
      extended by com.hazelcast.concurrent.atomiclong.operations.AtomicLongBaseOperation
          extended by com.hazelcast.concurrent.atomiclong.operations.AtomicLongBackupAwareOperation
              extended by com.hazelcast.concurrent.atomiclong.operations.AbstractAlterOperation
                  extended by com.hazelcast.concurrent.atomiclong.operations.AlterAndGetOperation
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, BackupAwareOperation, RemotePropagatable<Operation>, PartitionAwareOperation

public class AlterAndGetOperation
extends AbstractAlterOperation


Field Summary
 
Fields inherited from class com.hazelcast.concurrent.atomiclong.operations.AbstractAlterOperation
backup, function, response
 
Fields inherited from class com.hazelcast.concurrent.atomiclong.operations.AtomicLongBackupAwareOperation
shouldBackup
 
Fields inherited from class com.hazelcast.concurrent.atomiclong.operations.AtomicLongBaseOperation
name
 
Constructor Summary
AlterAndGetOperation()
           
AlterAndGetOperation(String name, IFunction<Long,Long> function)
           
 
Method Summary
 int getId()
          Returns type identifier for this class.
 void run()
           
 
Methods inherited from class com.hazelcast.concurrent.atomiclong.operations.AbstractAlterOperation
getBackupOperation, getResponse, readInternal, writeInternal
 
Methods inherited from class com.hazelcast.concurrent.atomiclong.operations.AtomicLongBackupAwareOperation
getAsyncBackupCount, getSyncBackupCount, shouldBackup
 
Methods inherited from class com.hazelcast.concurrent.atomiclong.operations.AtomicLongBaseOperation
afterRun, beforeRun, getFactoryId, getNumber, returnsResponse
 
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
 
Methods inherited from interface com.hazelcast.nio.serialization.DataSerializable
readData, writeData
 

Constructor Detail

AlterAndGetOperation

public AlterAndGetOperation()

AlterAndGetOperation

public AlterAndGetOperation(String name,
                            IFunction<Long,Long> function)
Method Detail

getId

public int getId()
Description copied from interface: IdentifiedDataSerializable
Returns type identifier for this class. Id should be unique per DataSerializableFactory.

Returns:
type id

run

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


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