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 DeadlineDeadline.MAX_VALUEA 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 DeadlineRetrieve the deadline with the most time remaining until it expiresDeadline.sleep()Sleeps the current thread until interrupted or until this deadline has expired.static DeadlineRetrieve 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 TypeMethodDescriptionintfinal Tstatic DeadlineRetrieve the deadline with the most time remaining until it expiresvoidSleep for the duration of this timeout (or until the thread is interrupted, or until the provided deadline expires)static DeadlineRetrieve the deadline with the least time remaining until it expiresCreate a new deadline within a given maximum timeframe; this prevents