Package org.distributeme.core.failing
Class FailoverAndReturnInTenSeconds
java.lang.Object
org.distributeme.core.routing.AbstractRouter
org.distributeme.core.failing.FailoverAndReturn
org.distributeme.core.failing.FailoverAndReturnInTenSeconds
- All Implemented Interfaces:
FailingStrategy,RegistrationNameProvider,Router
This failing strategy / router combination is pretty much the same as Failover, but instead of staying on
the failover instance forever, it tries to switch back after 10 seconds.
- Version:
- $Id: $Id
- Author:
- another
-
Field Summary
Fields inherited from class org.distributeme.core.failing.FailoverAndReturn
MINUTE, SECOND, SUFFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longReturns the time unit in milliseconds between the router retries to get back to original server.Methods inherited from class org.distributeme.core.failing.FailoverAndReturn
callFailed, customize, getRegistrationName, getServiceIdForCall, getSuffixMethods inherited from class org.distributeme.core.routing.AbstractRouter
customize, getRoutingStats, setServiceId
-
Constructor Details
-
FailoverAndReturnInTenSeconds
public FailoverAndReturnInTenSeconds()
-
-
Method Details
-
getFailbackTimeout
protected long getFailbackTimeout()Returns the time unit in milliseconds between the router retries to get back to original server.- Specified by:
getFailbackTimeoutin classFailoverAndReturn- Returns:
- a long.
-