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