Class AbstractScheduledService.FutureAsCancellable
- java.lang.Object
-
- com.google.common.util.concurrent.AbstractScheduledService.FutureAsCancellable
-
- All Implemented Interfaces:
AbstractScheduledService.Cancellable
- Enclosing class:
- AbstractScheduledService
private static final class AbstractScheduledService.FutureAsCancellable extends java.lang.Object implements AbstractScheduledService.Cancellable
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.Future<?>
delegate
-
Constructor Summary
Constructors Constructor Description FutureAsCancellable(java.util.concurrent.Future<?> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel(boolean mayInterruptIfRunning)
boolean
isCancelled()
-
-
-
Method Detail
-
cancel
public void cancel(boolean mayInterruptIfRunning)
- Specified by:
cancel
in interfaceAbstractScheduledService.Cancellable
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceAbstractScheduledService.Cancellable
-
-