Search in sources :

Example 1 with AlterAndGetOperation

use of com.hazelcast.concurrent.atomiclong.operations.AlterAndGetOperation in project hazelcast by hazelcast.

the class AtomicLongProxy method alterAndGetAsync.

@Override
public InternalCompletableFuture<Long> alterAndGetAsync(IFunction<Long, Long> function) {
    isNotNull(function, "function");
    Operation operation = new AlterAndGetOperation(name, function).setPartitionId(partitionId);
    return invokeOnPartition(operation);
}
Also used : AlterAndGetOperation(com.hazelcast.concurrent.atomiclong.operations.AlterAndGetOperation) Operation(com.hazelcast.spi.Operation) AddAndGetOperation(com.hazelcast.concurrent.atomiclong.operations.AddAndGetOperation) ApplyOperation(com.hazelcast.concurrent.atomiclong.operations.ApplyOperation) GetAndAlterOperation(com.hazelcast.concurrent.atomiclong.operations.GetAndAlterOperation) GetOperation(com.hazelcast.concurrent.atomiclong.operations.GetOperation) GetAndSetOperation(com.hazelcast.concurrent.atomiclong.operations.GetAndSetOperation) AlterAndGetOperation(com.hazelcast.concurrent.atomiclong.operations.AlterAndGetOperation) SetOperation(com.hazelcast.concurrent.atomiclong.operations.SetOperation) GetAndAddOperation(com.hazelcast.concurrent.atomiclong.operations.GetAndAddOperation) CompareAndSetOperation(com.hazelcast.concurrent.atomiclong.operations.CompareAndSetOperation) AlterOperation(com.hazelcast.concurrent.atomiclong.operations.AlterOperation)

Aggregations

AddAndGetOperation (com.hazelcast.concurrent.atomiclong.operations.AddAndGetOperation)1 AlterAndGetOperation (com.hazelcast.concurrent.atomiclong.operations.AlterAndGetOperation)1 AlterOperation (com.hazelcast.concurrent.atomiclong.operations.AlterOperation)1 ApplyOperation (com.hazelcast.concurrent.atomiclong.operations.ApplyOperation)1 CompareAndSetOperation (com.hazelcast.concurrent.atomiclong.operations.CompareAndSetOperation)1 GetAndAddOperation (com.hazelcast.concurrent.atomiclong.operations.GetAndAddOperation)1 GetAndAlterOperation (com.hazelcast.concurrent.atomiclong.operations.GetAndAlterOperation)1 GetAndSetOperation (com.hazelcast.concurrent.atomiclong.operations.GetAndSetOperation)1 GetOperation (com.hazelcast.concurrent.atomiclong.operations.GetOperation)1 SetOperation (com.hazelcast.concurrent.atomiclong.operations.SetOperation)1 Operation (com.hazelcast.spi.Operation)1