Interface ActionDispatcher

All Superinterfaces:
Serializable

public interface ActionDispatcher extends Serializable
Allows dispatching actions to be executed in background. The ActionDispatcher is created by the ConnectionContext and passed to the ActivationHandler in the ConnectionContext.init(ActivationHandler, SerializableExecutor) method.
Author:
Vaadin Ltd
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a completable future that needs to be resolved by the caller.
    void
    dispatchAction(com.vaadin.flow.server.Command action)
    Dispatches the given action.
  • Method Details

    • dispatchAction

      void dispatchAction(com.vaadin.flow.server.Command action)
      Dispatches the given action.
      Parameters:
      action - the action to be executed in background, not null
    • createCompletableFuture

      <T> CompletableFuture<T> createCompletableFuture()
      Gets a completable future that needs to be resolved by the caller.
      Returns:
      the CompletableFuture to be resolved