Class AbstractLocalInvocationDispatcher
java.lang.Object
dev.getelements.elements.rt.remote.AbstractLocalInvocationDispatcher
- All Implemented Interfaces:
LocalInvocationDispatcher
- Direct Known Subclasses:
ContextLocalInvocationDispatcher
,MasterNodeLocalInvocationDispatcher
,ServiceLocatorLocalInvocationDispatcher
public abstract class AbstractLocalInvocationDispatcher
extends Object
implements LocalInvocationDispatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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>
.getScope()
protected Object
protected Object
resolve
(Class<?> type, Invocation invocation) protected Object
void
setProtocol
(String protocol) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.rt.remote.LocalInvocationDispatcher
dispatch
-
Constructor Details
-
AbstractLocalInvocationDispatcher
public AbstractLocalInvocationDispatcher()
-
-
Method Details
-
dispatch
public void dispatch(Invocation invocation, Consumer<InvocationResult> syncInvocationResultConsumer, Consumer<InvocationError> syncInvocationErrorConsumer, List<Consumer<InvocationResult>> additionalInvocationResultConsumerList, Consumer<InvocationError> asyncInvocationErrorConsumer) Description copied from interface:LocalInvocationDispatcher
Performs the actual dispatch by unpacking theInvocation
and collecting the results into the providedConsumer<InvocationResult>
. The suppliedConsumer<InvocationResult>
.- Specified by:
dispatch
in interfaceLocalInvocationDispatcher
- Parameters:
invocation
-syncInvocationErrorConsumer
-additionalInvocationResultConsumerList
-asyncInvocationErrorConsumer
-
-
resolve
-
resolve
-
resolve
-
getScope
-
setScope
-
getProtocol
-
setProtocol
-