Uses of Class
com.peterphi.std.threading.Deadline
Packages that use Deadline
-
Uses of Deadline in com.peterphi.std.threading
Fields in com.peterphi.std.threading declared as DeadlineModifier and TypeFieldDescriptionstatic final Deadline
Deadline.MAX_VALUE
A deadline which will never arrive - representing the year 292278994, on Sun Aug 17 at 07:12:55 UTCMethods in com.peterphi.std.threading that return DeadlineModifier and TypeMethodDescriptionstatic Deadline
Retrieve the deadline with the most time remaining until it expiresDeadline.sleep()
Sleeps the current thread until interrupted or until this deadline has expired.static Deadline
Retrieve the deadline with the least time remaining until it expiresTimeout.start()
Create a new deadline which is the given period of time in the futureCreate a new deadline within a given maximum timeframe; this preventsMethods in com.peterphi.std.threading with parameters of type DeadlineModifier and TypeMethodDescriptionint
final T
static Deadline
Retrieve the deadline with the most time remaining until it expiresvoid
Sleep for the duration of this timeout (or until the thread is interrupted, or until the provided deadline expires)static Deadline
Retrieve the deadline with the least time remaining until it expiresCreate a new deadline within a given maximum timeframe; this prevents