Search in sources :

Example 1 with DisposeTaskOperation

use of com.hazelcast.scheduledexecutor.impl.operations.DisposeTaskOperation in project hazelcast by hazelcast.

the class ScheduledFutureProxy method dispose.

@Override
public void dispose() {
    checkAccessibleHandler();
    checkAccessibleOwner();
    unRegisterPartitionListenerIfExists();
    unRegisterMembershipListenerIfExists();
    Operation op = new DisposeTaskOperation(handler);
    InternalCompletableFuture future = invoke(op);
    handler = null;
    future.join();
}
Also used : DisposeTaskOperation(com.hazelcast.scheduledexecutor.impl.operations.DisposeTaskOperation) InternalCompletableFuture(com.hazelcast.spi.InternalCompletableFuture) DisposeTaskOperation(com.hazelcast.scheduledexecutor.impl.operations.DisposeTaskOperation) GetResultOperation(com.hazelcast.scheduledexecutor.impl.operations.GetResultOperation) IsCanceledOperation(com.hazelcast.scheduledexecutor.impl.operations.IsCanceledOperation) CancelTaskOperation(com.hazelcast.scheduledexecutor.impl.operations.CancelTaskOperation) Operation(com.hazelcast.spi.Operation) GetStatisticsOperation(com.hazelcast.scheduledexecutor.impl.operations.GetStatisticsOperation) GetDelayOperation(com.hazelcast.scheduledexecutor.impl.operations.GetDelayOperation) IsDoneOperation(com.hazelcast.scheduledexecutor.impl.operations.IsDoneOperation)

Aggregations

CancelTaskOperation (com.hazelcast.scheduledexecutor.impl.operations.CancelTaskOperation)1 DisposeTaskOperation (com.hazelcast.scheduledexecutor.impl.operations.DisposeTaskOperation)1 GetDelayOperation (com.hazelcast.scheduledexecutor.impl.operations.GetDelayOperation)1 GetResultOperation (com.hazelcast.scheduledexecutor.impl.operations.GetResultOperation)1 GetStatisticsOperation (com.hazelcast.scheduledexecutor.impl.operations.GetStatisticsOperation)1 IsCanceledOperation (com.hazelcast.scheduledexecutor.impl.operations.IsCanceledOperation)1 IsDoneOperation (com.hazelcast.scheduledexecutor.impl.operations.IsDoneOperation)1 InternalCompletableFuture (com.hazelcast.spi.InternalCompletableFuture)1 Operation (com.hazelcast.spi.Operation)1