T - The type of object that is registeredpublic interface Registration<T>
extends reactor.fn.Pausable
| Modifier and Type | Method and Description |
|---|---|
Registration<T> |
cancel()
Cancel this Registration by removing it from its registry.
|
Registration<T> |
cancelAfterUse()
Cancel this
Registration after it has been selected and used. |
T |
getObject()
The object that was registered
|
Selector |
getSelector()
The
Selector that was used when the registration was made. |
boolean |
isCancelAfterUse()
Whether to cancel this
Registration after use or not. |
boolean |
isCancelled()
Has this been cancelled?
|
boolean |
isPaused()
Whether this Registration has been paused or not.
|
Registration<T> |
pause()
Pause this Registration.
|
Registration<T> |
resume()
Unpause this Registration, making it available for
selection. |
Selector getSelector()
Selector that was used when the registration was made.T getObject()
Registration<T> cancelAfterUse()
Registration after it has been selected and used. Dispatcher implementations should respect this value and perform
the cancellation.boolean isCancelAfterUse()
Registration after use or not.Registration<T> cancel()
cancel in interface reactor.fn.Pausableboolean isCancelled()
Registration<T> pause()
selection.pause in interface reactor.fn.Pausableboolean isPaused()
Registration<T> resume()
selection.resume in interface reactor.fn.Pausable