Package org.distributeme.core.routing
Class NoOpRouter
java.lang.Object
org.distributeme.core.routing.AbstractRouter
org.distributeme.core.routing.NoOpRouter
- All Implemented Interfaces:
Router
This router implementation does mostly nothing. That means that it sends the request to the pre-configured service without ever modifying the serviceId.
The main purpose of this router is testing.
- Version:
- $Id: $Id
- Author:
- lrosenberg.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is old style customize.getServiceIdForCall(ClientSideCallContext context) Returns the serviceId for this particular call to route to.Methods inherited from class org.distributeme.core.routing.AbstractRouter
customize, getRoutingStats, setServiceId
-
Constructor Details
-
NoOpRouter
public NoOpRouter()
-
-
Method Details
-
getServiceIdForCall
Returns the serviceId for this particular call to route to.- Specified by:
getServiceIdForCallin interfaceRouter- Parameters:
context- context of the call with all call related data.- Returns:
- a
Stringobject.
-
customize
This is old style customize. It is called by the 'new' customize.- Overrides:
customizein classAbstractRouter- Parameters:
parameter- aStringobject.
-