Interface LocalInvocationDispatcher

All Known Implementing Classes:
AbstractLocalInvocationDispatcher, ContextLocalInvocationDispatcher, MasterNodeLocalInvocationDispatcher, ServiceLocatorLocalInvocationDispatcher

public interface LocalInvocationDispatcher
Dispatches Invocation instances to the objects in the container, collects the result, and relays any errors.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    dispatch(dev.getelements.elements.rt.remote.Invocation invocation, dev.getelements.elements.rt.ResultHandlerStrategy resultHandlerStrategy)
    Dispatches using the Invocation and ResultHandlerStrategy.
    void
    dispatch(dev.getelements.elements.rt.remote.Invocation invocation, Consumer<dev.getelements.elements.rt.remote.InvocationResult> syncInvocationResultConsumer, Consumer<dev.getelements.elements.rt.remote.InvocationError> syncInvocationErrorConsumer, List<Consumer<dev.getelements.elements.rt.remote.InvocationResult>> additionalInvocationResultConsumerList, Consumer<dev.getelements.elements.rt.remote.InvocationError> asyncInvocationErrorConsumer)
    Performs the actual dispatch by unpacking the Invocation and collecting the results into the provided Consumer<dev.getelements.elements.rt.remote.InvocationResult>.
  • Method Details

    • dispatch

      void dispatch(dev.getelements.elements.rt.remote.Invocation invocation, Consumer<dev.getelements.elements.rt.remote.InvocationResult> syncInvocationResultConsumer, Consumer<dev.getelements.elements.rt.remote.InvocationError> syncInvocationErrorConsumer, List<Consumer<dev.getelements.elements.rt.remote.InvocationResult>> additionalInvocationResultConsumerList, Consumer<dev.getelements.elements.rt.remote.InvocationError> asyncInvocationErrorConsumer)
      Performs the actual dispatch by unpacking the Invocation and collecting the results into the provided Consumer<dev.getelements.elements.rt.remote.InvocationResult>. The supplied Consumer<dev.getelements.elements.rt.remote.InvocationResult>.
      Parameters:
      invocation -
      syncInvocationErrorConsumer -
      additionalInvocationResultConsumerList -
      asyncInvocationErrorConsumer -
    • dispatch

      default void dispatch(dev.getelements.elements.rt.remote.Invocation invocation, dev.getelements.elements.rt.ResultHandlerStrategy resultHandlerStrategy)
      Dispatches using the Invocation and ResultHandlerStrategy.
      Parameters:
      invocation - the Invocation
      resultHandlerStrategy - the ResultHandlerStrategy