This project has retired. For details please refer to its Attic page.
CappedExponentialCounter (Apache Crunch 0.9.0 API)

org.apache.crunch.impl.mr.exec
Class CappedExponentialCounter

java.lang.Object
  extended by org.apache.crunch.impl.mr.exec.CappedExponentialCounter

public class CappedExponentialCounter
extends Object

Generate a series of capped numbers exponentially. It is used for creating retry intervals. It is NOT thread-safe.


Constructor Summary
CappedExponentialCounter(long start, long limit)
           
 
Method Summary
 long get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CappedExponentialCounter

public CappedExponentialCounter(long start,
                                long limit)
Method Detail

get

public long get()


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.