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(Invocation invocation, ResultHandlerStrategy resultHandlerStrategy) Dispatches using theInvocationandResultHandlerStrategy.voiddispatch(Invocation invocation, Consumer<InvocationResult> syncInvocationResultConsumer, Consumer<InvocationError> syncInvocationErrorConsumer, List<Consumer<InvocationResult>> additionalInvocationResultConsumerList, Consumer<InvocationError> asyncInvocationErrorConsumer) Performs the actual dispatch by unpacking theInvocationand collecting the results into the providedConsumer<InvocationResult>.
-
Method Details
-
dispatch
void dispatch(Invocation invocation, Consumer<InvocationResult> syncInvocationResultConsumer, Consumer<InvocationError> syncInvocationErrorConsumer, List<Consumer<InvocationResult>> additionalInvocationResultConsumerList, Consumer<InvocationError> asyncInvocationErrorConsumer) Performs the actual dispatch by unpacking theInvocationand collecting the results into the providedConsumer<InvocationResult>. The suppliedConsumer<InvocationResult>.- Parameters:
invocation-syncInvocationErrorConsumer-additionalInvocationResultConsumerList-asyncInvocationErrorConsumer-
-
dispatch
Dispatches using theInvocationandResultHandlerStrategy.- Parameters:
invocation- theInvocationresultHandlerStrategy- theResultHandlerStrategy
-