Class FailoverAndReturnInTenSeconds

All Implemented Interfaces:
FailingStrategy, RegistrationNameProvider, Router

public class FailoverAndReturnInTenSeconds extends FailoverAndReturn
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
  • 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:
      getFailbackTimeout in class FailoverAndReturn
      Returns:
      a long.