use of com.hazelcast.scheduledexecutor.impl.operations.CancelTaskOperation in project hazelcast by hazelcast.
the class ScheduledFutureProxy method cancel.
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
if (mayInterruptIfRunning) {
// inside the TaskRunner but it adds extra complexity.
throw new UnsupportedOperationException("mayInterruptIfRunning flag is not supported.");
}
checkAccessibleHandler();
checkAccessibleOwner();
Operation op = new CancelTaskOperation(handler, false);
return this.<Boolean>invoke(op).joinInternal();
}
Aggregations