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()
int
long
toString()
void
updateTimeout
(long extendBy, TimeUnit timeUnit)
-
Constructor Details
-
TimeoutTask
-
-
Method Details
-
getTestId
- Specified by:
getTestId
in interfaceTaskIfc<TimeoutTask>
-
getStopTimestamp
-
clone
- Specified by:
clone
in interfaceTaskIfc<TimeoutTask>
- Overrides:
clone
in classObject
-
getDelay
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Delayed>
-
toString
-
updateTimeout
- Specified by:
updateTimeout
in interfaceExtendableTaskIfc<TimeoutTask>
-