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 ObjectCombines two rawObjectresults.protected ObjectGets 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, setRemoteInvokerRegistryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.rt.remote.RoutingStrategy
invokeAsyncV
-
Constructor Details
-
BroadcastRoutingStrategy
public BroadcastRoutingStrategy()
-
-
Method Details
-
newInitialResult
Description copied from class:AbstractAggregateRoutingStrategyGets the initial result to be fed into theAbstractAggregateRoutingStrategy.combine(Object, Object)call. This should represent a zero-state result. For example, if combiningListinstances, this should ensure that it contains an initial empty list.- Specified by:
newInitialResultin classAbstractAggregateRoutingStrategy- Returns:
- the
Objectfor the initial aggregate operation.
-
combine
Description copied from class:AbstractAggregateRoutingStrategyCombines two rawObjectresults.- Specified by:
combinein classAbstractAggregateRoutingStrategy- Parameters:
a- the first objectb- the second object- Returns:
- the combined
Object
-