Package com.vaadin.collaborationengine
Interface ActionDispatcher
-
public interface ActionDispatcherAllows dispatching actions to be executed in background. The ActionDispatcher is created by the ConnectionContext and passed to theActivationHandlerin theConnectionContext.init(ActivationHandler, Executor)method.- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> CompletableFuture<T>createCompletableFuture()Gets a completable future that needs to be resolved by the caller.voiddispatchAction(Command action)Dispatches the given action.
-
-
-
Method Detail
-
dispatchAction
void dispatchAction(Command action)
Dispatches the given action.- Parameters:
action- the action to be executed in background, notnull
-
createCompletableFuture
<T> CompletableFuture<T> createCompletableFuture()
Gets a completable future that needs to be resolved by the caller.- Returns:
- the
CompletableFutureto be resolved
-
-