Class BroadcastRoutingStrategy
java.lang.Object
dev.getelements.elements.rt.routing.AbstractAggregateRoutingStrategy
dev.getelements.elements.rt.routing.BroadcastRoutingStrategy
- All Implemented Interfaces:
RoutingStrategy
This routing stragegy will broadcast to all nodes. It performs no aggregation and only works with methods returning
void or accepting a Void response. More specifically, the return must always be null for all consumers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
Combines two rawObject
results.protected Object
Gets the initial result to be fed into theAbstractAggregateRoutingStrategy.combine(Object, Object)
call.Methods inherited from class dev.getelements.elements.rt.routing.AbstractAggregateRoutingStrategy
combine, getApplicationId, getRemoteInvokerRegistry, getRemoteInvokers, invokeAsync, invokeFuture, invokeSync, newInitialInvocationResult, setApplicationId, setRemoteInvokerRegistry
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.RoutingStrategy
invokeAsyncV
-
Constructor Details
-
BroadcastRoutingStrategy
public BroadcastRoutingStrategy()
-
-
Method Details
-
newInitialResult
Description copied from class:AbstractAggregateRoutingStrategy
Gets the initial result to be fed into theAbstractAggregateRoutingStrategy.combine(Object, Object)
call. This should represent a zero-state result. For example, if combiningList
instances, this should ensure that it contains an initial empty list.- Specified by:
newInitialResult
in classAbstractAggregateRoutingStrategy
- Returns:
- the
Object
for the initial aggregate operation.
-
combine
Description copied from class:AbstractAggregateRoutingStrategy
Combines two rawObject
results.- Specified by:
combine
in classAbstractAggregateRoutingStrategy
- Parameters:
a
- the first objectb
- the second object- Returns:
- the combined
Object
-