K
- The type of object that is matched by selectorsV
- The type of object that is registeredpublic interface Registration<K,V> extends Pausable
Modifier and Type | Method and Description |
---|---|
Registration<K,V> |
cancel()
Cancel this Registration by removing it from its registry.
|
Registration<K,V> |
cancelAfterUse()
Cancel this
Registration after it has been selected and used. |
V |
getObject()
The object that was registered
|
Selector<K> |
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<K,V> |
pause()
Pause this Registration.
|
Registration<K,V> |
resume()
Unpause this Registration, making it available for
selection . |
Selector<K> getSelector()
Selector
that was used when the registration was made.V getObject()
Registration<K,V> 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<K,V> cancel()
boolean isCancelled()
Registration<K,V> pause()
selection
.boolean isPaused()
Copyright © 2016. All rights reserved.