Class TimeoutTask
java.lang.Object
com.nt.udc.testnodechain.timeout.tasks.TimeoutTask
- All Implemented Interfaces:
ExtendableTaskIfc<TimeoutTask>,TaskIfc<TimeoutTask>,Comparable<Delayed>,Delayed
Represents a TimeoutTask that can be inserted into a DelayQueue and becomes
available only after the specified timeout is attained.
This class is designed for tasks with timeout functionality that can be extended.
-
Field Summary
Fields inherited from interface com.nt.udc.testnodechain.timeout.tasks.interfaces.TaskIfc
TIME_UNIT_USED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intlongtoString()voidupdateTimeout(long extendBy, TimeUnit timeUnit)
-
Constructor Details
-
TimeoutTask
-
-
Method Details
-
getTestId
- Specified by:
getTestIdin interfaceTaskIfc<TimeoutTask>
-
getStopTimestamp
-
clone
- Specified by:
clonein interfaceTaskIfc<TimeoutTask>- Overrides:
clonein classObject
-
getDelay
-
compareTo
- Specified by:
compareToin interfaceComparable<Delayed>
-
toString
-
updateTimeout
- Specified by:
updateTimeoutin interfaceExtendableTaskIfc<TimeoutTask>
-