We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.collaborationengine.
Interface ActionDispatcher
-
public interface ActionDispatcher
Allows dispatching actions to be executed in background. The ActionDispatcher is created by the ConnectionContext and passed to the
ActivationHandler
in theConnectionContext.init(ActivationHandler, Executor)
method.Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method Description <T> CompletableFuture<T>
createCompletableFuture()
Gets a completable future that needs to be resolved by the caller.
void
dispatchAction​(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
CompletableFuture
to be resolved
-
-