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 TypeMethodDescriptiondefault voiddispatch(dev.getelements.elements.rt.remote.Invocation invocation, dev.getelements.elements.rt.ResultHandlerStrategy resultHandlerStrategy) Dispatches using theInvocationandResultHandlerStrategy.voiddispatch(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 theInvocationand collecting the results into the providedConsumer<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 theInvocationand collecting the results into the providedConsumer<dev.getelements.elements.rt.remote.InvocationResult>. The suppliedConsumer<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 theInvocationandResultHandlerStrategy.- Parameters:
invocation- theInvocationresultHandlerStrategy- theResultHandlerStrategy
-