public class DisposableFutureHandle implements DisposableHandle
An implementation of interface DisposableHandle that cancels the specified future on dispose.
interface DisposableHandleDisposableHandle.DefaultImpls| Constructor and Description |
|---|
DisposableFutureHandle(java.util.concurrent.Future<?> future)
An implementation of
interface DisposableHandle that cancels the specified future on dispose. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes the corresponding object, making it eligible for garbage collection.
Repeated invocation of this function has no effect.
|
java.lang.String |
toString() |
disposepublic DisposableFutureHandle(java.util.concurrent.Future<?> future)
An implementation of interface DisposableHandle that cancels the specified future on dispose.
interface DisposableHandle