Package com.cloudera.util

Examples of com.cloudera.util.CappedExponentialBackoff


        FlumeConfiguration.get().getFailoverMaxSingleBackoff());
  }

  public BackOffFailOverSink(EventSink primary, EventSink backup,
      long initialBackoff, long maxBackoff) {
    this(primary, backup, new CappedExponentialBackoff(initialBackoff,
        maxBackoff));
  }
View Full Code Here


  public FailoverChainSink(Context context, String specFormat,
      List<String> list, long initialBackoff, long maxBackoff)
      throws FlumeSpecException {
    snk =
        buildSpec(context, specFormat, list, new CappedExponentialBackoff(
            initialBackoff, maxBackoff));
  }
View Full Code Here

   * 'initial' ms, exponentially backs off an individual sleep upto 'sleepCap'
   * ms. This has no cumulative cap and will never give up.
   */
  public InsistentAppendDecorator(S s, long initial, long sleepCap) {
    super(s);
    this.backoff = new CappedExponentialBackoff(initial, sleepCap);
  }
View Full Code Here

TOP

Related Classes of com.cloudera.util.CappedExponentialBackoff

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.