private static final class AbstractScheduledService.FutureAsCancellable extends java.lang.Object implements AbstractScheduledService.Cancellable
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.Future<?> |
delegate |
Constructor and Description |
---|
FutureAsCancellable(java.util.concurrent.Future<?> delegate) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(boolean mayInterruptIfRunning) |
boolean |
isCancelled() |
public void cancel(boolean mayInterruptIfRunning)
cancel
in interface AbstractScheduledService.Cancellable
public boolean isCancelled()
isCancelled
in interface AbstractScheduledService.Cancellable