Package org.distributeme.core.routing
Class RoundRobinRouter
java.lang.Object
org.distributeme.core.routing.AbstractRouter
org.distributeme.core.routing.RoundRobinRouter
- All Implemented Interfaces:
Router
This router sends each call to another instance. It is useful if you want to cluster a service
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is old style customize.getServiceIdForCall(ClientSideCallContext callContext) Returns the serviceId for this particular call to route to.Methods inherited from class org.distributeme.core.routing.AbstractRouter
customize, getRoutingStats, setServiceId
-
Constructor Details
-
RoundRobinRouter
public RoundRobinRouter()
-
-
Method Details
-
customize
This is old style customize. It is called by the 'new' customize.- Overrides:
customizein classAbstractRouter- Parameters:
parameter- aStringobject.
-
getServiceIdForCall
Returns the serviceId for this particular call to route to.- Specified by:
getServiceIdForCallin interfaceRouter- Parameters:
callContext- context of the call with all call related data.- Returns:
- a
Stringobject.
-