Package org.apache.pulsar.io.kinesis
Class Backoff
- java.lang.Object
-
- org.apache.pulsar.io.kinesis.Backoff
-
public class Backoff extends java.lang.ObjectAll variables are in TimeUnit millis by default.
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_INTERVAL_IN_NANOSECONDSstatic longMAX_BACKOFF_INTERVAL_NANOSECONDS
-
Constructor Summary
Constructors Constructor Description Backoff(long initial, java.util.concurrent.TimeUnit unitInitial, long max, java.util.concurrent.TimeUnit unitMax, long mandatoryStop, java.util.concurrent.TimeUnit unitMandatoryStop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longnext()voidreduceToHalf()voidreset()
-