Search in sources :

Example 1 with RetrieveAndDisposeResultOperation

use of com.hazelcast.durableexecutor.impl.operations.RetrieveAndDisposeResultOperation in project hazelcast by hazelcast.

the class DurableExecutorServiceProxy method retrieveAndDisposeResult.

@Override
public <T> Future<T> retrieveAndDisposeResult(long uniqueId) {
    int partitionId = Bits.extractInt(uniqueId, false);
    int sequence = Bits.extractInt(uniqueId, true);
    Operation op = new RetrieveAndDisposeResultOperation(name, sequence).setPartitionId(partitionId);
    return invokeOnPartition(op);
}
Also used : ShutdownOperation(com.hazelcast.durableexecutor.impl.operations.ShutdownOperation) TaskOperation(com.hazelcast.durableexecutor.impl.operations.TaskOperation) Operation(com.hazelcast.spi.Operation) DisposeResultOperation(com.hazelcast.durableexecutor.impl.operations.DisposeResultOperation) RetrieveAndDisposeResultOperation(com.hazelcast.durableexecutor.impl.operations.RetrieveAndDisposeResultOperation) RetrieveResultOperation(com.hazelcast.durableexecutor.impl.operations.RetrieveResultOperation) RetrieveAndDisposeResultOperation(com.hazelcast.durableexecutor.impl.operations.RetrieveAndDisposeResultOperation)

Aggregations

DisposeResultOperation (com.hazelcast.durableexecutor.impl.operations.DisposeResultOperation)1 RetrieveAndDisposeResultOperation (com.hazelcast.durableexecutor.impl.operations.RetrieveAndDisposeResultOperation)1 RetrieveResultOperation (com.hazelcast.durableexecutor.impl.operations.RetrieveResultOperation)1 ShutdownOperation (com.hazelcast.durableexecutor.impl.operations.ShutdownOperation)1 TaskOperation (com.hazelcast.durableexecutor.impl.operations.TaskOperation)1 Operation (com.hazelcast.spi.Operation)1