private static class DefaultShutdownCallbackRegistry.RegisteredCancellable extends java.lang.Object implements Cancellable
| Modifier and Type | Field and Description |
|---|---|
private java.lang.ref.Reference<java.lang.Runnable> |
hook |
private java.util.Collection<Cancellable> |
registered |
| Constructor and Description |
|---|
RegisteredCancellable(java.lang.Runnable callback,
java.util.Collection<Cancellable> registered) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the execution of this Runnable callback.
|
void |
run() |
java.lang.String |
toString() |
private final java.lang.ref.Reference<java.lang.Runnable> hook
private java.util.Collection<Cancellable> registered
RegisteredCancellable(java.lang.Runnable callback,
java.util.Collection<Cancellable> registered)
public void cancel()
Cancellablecancel in interface Cancellablepublic void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Object