Package com.automation_pros.odva.encap
Class TcpConx.TcpDeadline
- java.lang.Object
-
- com.automation_pros.odva.encap.TcpConx.TcpDeadline
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TcpDeadline()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDeadline(long now)
Implementing objects communicate their timing requirements and trigger timed operations using this method.
-
-
-
Method Detail
-
getDeadline
public long getDeadline(long now)
Description copied from interface:Deadline
Implementing objects communicate their timing requirements and trigger timed operations using this method. The object creator must have infrastructure to call this method after creation, then repeatedly as close to the requested timestamps as practical. Infrastructure is allowed to call this method early to re-evaluate the next timestamp requirement. Implementors must check the supplied 'now' timestamp to verify that a timed operation is appropriate. Implementations may make no assumptions about the thread environment or object synchronization.- Specified by:
getDeadline
in interfaceDeadline
- Parameters:
now
- System.nanotime() to be used in the calculations.- Returns:
- The absolute System.nanoTime() of the next event needed by the implementation. Return Long.MAX_VALUE if no further events are required.
-
-