Search in sources :

Example 1 with ApplyOperation

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

the class AtomicLongProxy method applyAsync.

@Override
public <R> InternalCompletableFuture<R> applyAsync(IFunction<Long, R> function) {
    isNotNull(function, "function");
    Operation operation = new ApplyOperation<R>(name, function).setPartitionId(partitionId);
    return invokeOnPartition(operation);
}
Also used : 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