Search in sources :

Example 1 with GetDelayOperation

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

the class ScheduledFutureProxy method getDelay.

@Override
public long getDelay(TimeUnit unit) {
    checkNotNull(unit, "Unit is null");
    checkAccessibleHandler();
    checkAccessibleOwner();
    Operation op = new GetDelayOperation(handler, unit);
    return this.<Long>invoke(op).joinInternal();
}
Also used : GetDelayOperation(com.hazelcast.scheduledexecutor.impl.operations.GetDelayOperation) DisposeTaskOperation(com.hazelcast.scheduledexecutor.impl.operations.DisposeTaskOperation) GetResultOperation(com.hazelcast.scheduledexecutor.impl.operations.GetResultOperation) IsCanceledOperation(com.hazelcast.scheduledexecutor.impl.operations.IsCanceledOperation) Operation(com.hazelcast.spi.impl.operationservice.Operation) CancelTaskOperation(com.hazelcast.scheduledexecutor.impl.operations.CancelTaskOperation) 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 Operation (com.hazelcast.spi.impl.operationservice.Operation)1