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()
Cancellable
cancel
in interface Cancellable
public void run()
run
in interface java.lang.Runnable
public java.lang.String toString()
toString
in class java.lang.Object