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 Type
    Method
    Description
    void
    customize(String serviceId, String parameter)
    Called shortly after the initialization to customize this router according to the parameter in the annotation.
    Returns the serviceId for this particular call to route to.
  • Method Details

    • getServiceIdForCall

      String getServiceIdForCall(ClientSideCallContext callContext)
      Returns the serviceId for this particular call to route to.
      Parameters:
      callContext - context of the call with all call related data.
      Returns:
      a String object.
    • customize

      void customize(String serviceId, String parameter)
      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.