org.fluentd.logger.sender
Class ExponentialDelayReconnector

java.lang.Object
  extended by org.fluentd.logger.sender.ExponentialDelayReconnector
All Implemented Interfaces:
Reconnector

public class ExponentialDelayReconnector
extends Object
implements Reconnector

Calcurate exponential delay for reconnecting


Constructor Summary
ExponentialDelayReconnector()
           
 
Method Summary
 void addErrorHistory(long timestamp)
           
 void clearErrorHistory()
           
 boolean enableReconnection(long timestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExponentialDelayReconnector

public ExponentialDelayReconnector()
Method Detail

addErrorHistory

public void addErrorHistory(long timestamp)
Specified by:
addErrorHistory in interface Reconnector

clearErrorHistory

public void clearErrorHistory()
Specified by:
clearErrorHistory in interface Reconnector

enableReconnection

public boolean enableReconnection(long timestamp)
Specified by:
enableReconnection in interface Reconnector


Copyright © 2012. All Rights Reserved.