Class AbstractSourceTask.Timer
java.lang.Object
org.apache.commons.lang3.time.StopWatch
io.aiven.kafka.connect.common.source.AbstractSourceTask.Timer
- Enclosing class:
 - AbstractSourceTask
 
protected static class AbstractSourceTask.Timer
extends org.apache.commons.lang3.time.StopWatch
Calculates elapsed time and flags when expired.
- 
Method Summary
Methods inherited from class org.apache.commons.lang3.time.StopWatch
create, createStarted, formatSplitTime, formatTime, getMessage, getNanoTime, getSplitNanoTime, getSplitTime, getStartTime, getStopTime, getTime, getTime, isStarted, isStopped, isSuspended, resume, split, suspend, toSplitString, toString, unsplit 
- 
Method Details
- 
millisecondsRemaining
public long millisecondsRemaining()Gets the maximum duration for this timer.- Returns:
 - the maximum duration for the timer.
 
 - 
isExpired
public boolean isExpired()Returnstrueif the timer has expired.- Returns:
 trueif the timer has expired.
 - 
abort
public void abort()Aborts the timer. Timer will report that it has expired until reset is called. - 
start
public void start()- Overrides:
 startin classorg.apache.commons.lang3.time.StopWatch
 - 
stop
public void stop()- Overrides:
 stopin classorg.apache.commons.lang3.time.StopWatch
 - 
reset
public void reset()- Overrides:
 resetin classorg.apache.commons.lang3.time.StopWatch
 - 
getBackoffConfig
Gets a Backoff Config for this timer.- Returns:
 - a backoff Configuration.
 
 
 -