public interface ConnectionContext
Modifier and Type | Method and Description |
---|---|
<T> CompletableFuture<T> |
createCompletableFuture()
Gets a completable future that needs to be resolved within the current
context.
|
void |
dispatchAction(Command action)
Dispatches the given action.
|
Registration |
setActivationHandler(ActivationHandler handler)
Sets an instance of
ActivationHandler to the current context. |
Registration setActivationHandler(ActivationHandler handler)
ActivationHandler
to the current context.
This method should include logic for updating the activation status.handler
- the handler for activation changesnull
if there
is nothing to clean upvoid dispatchAction(Command action)
action
- the action to be executed in the context<T> CompletableFuture<T> createCompletableFuture()
CompletableFuture
to be resolvedCopyright © 2021. All rights reserved.