Class RoundRobinRouter

java.lang.Object
org.distributeme.core.routing.AbstractRouter
org.distributeme.core.routing.RoundRobinRouter
All Implemented Interfaces:
Router

public class RoundRobinRouter extends AbstractRouter implements 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 Details

    • RoundRobinRouter

      public RoundRobinRouter()
  • Method Details

    • customize

      public void customize(String parameter)
      This is old style customize. It is called by the 'new' customize.
      Overrides:
      customize in class AbstractRouter
      Parameters:
      parameter - a String object.
    • getServiceIdForCall

      public String getServiceIdForCall(ClientSideCallContext callContext)
      Returns the serviceId for this particular call to route to.
      Specified by:
      getServiceIdForCall in interface Router
      Parameters:
      callContext - context of the call with all call related data.
      Returns:
      a String object.