Package org.distributeme.core.routing
Interface Router
- All Known Subinterfaces:
ConfigurableRouter
- All Known Implementing Classes:
AbstractParameterBasedModRouterWithFailOverToNextNode,AbstractRouter,AbstractRouterWithFailOverToNextNode,AbstractRouterWithStickyFailOverToNextNode,Failover,FailoverAndReturn,FailoverAndReturnInAMinute,FailoverAndReturnInTenSeconds,FailoverAndReturnWithConfigurableBlacklisting,FairRoundRobinRouter,NoOpRouter,ParameterBasedModRouter,RoundRobinRouter,RoundRobinRouterWithFailoverToNextNode,RoundRobinRouterWithStickyFailoverToNextNode,SysOutRouter
public interface Router
This interface defines a call router, which influences how calls are distributed to different servers in the same system.
see https://confluence.opensource.anotheria.net/display/DISTRIBUTEME/Routing+and+Failing+Strategies
see https://confluence.opensource.anotheria.net/display/DISTRIBUTEME/Routing
see https://confluence.opensource.anotheria.net/display/DISTRIBUTEME/Routing+and+Failing+Strategies
see https://confluence.opensource.anotheria.net/display/DISTRIBUTEME/Routing
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled shortly after the initialization to customize this router according to the parameter in the annotation.getServiceIdForCall(ClientSideCallContext callContext) Returns the serviceId for this particular call to route to.
-
Method Details
-
getServiceIdForCall
Returns the serviceId for this particular call to route to.- Parameters:
callContext- context of the call with all call related data.- Returns:
- a
Stringobject.
-
customize
Called shortly after the initialization to customize this router according to the parameter in the annotation.- Parameters:
serviceId- id of the service we are routing.parameter- value of the annotation parameter.
-