| Package | Description |
|---|---|
| com.peterphi.std.threading |
| Modifier and Type | Field and Description |
|---|---|
static Deadline |
Deadline.MAX_VALUE
A deadline which will never arrive - representing the year 292278994, on Sun Aug 17 at 07:12:55 UTC
|
| Modifier and Type | Method and Description |
|---|---|
static Deadline |
Deadline.latest(Deadline... deadlines)
Retrieve the deadline with the most time remaining until it expires
|
Deadline |
Deadline.sleep()
Sleeps the current thread until interrupted or until this deadline has expired.
|
static Deadline |
Deadline.soonest(Deadline... deadlines)
Retrieve the deadline with the least time remaining until it expires
|
Deadline |
Timeout.start()
Create a new deadline which is the given period of time in the future
|
Deadline |
Timeout.start(Deadline max)
Create a new deadline within a given maximum timeframe; this prevents
|
| Modifier and Type | Method and Description |
|---|---|
int |
Deadline.compareTo(Deadline that) |
T |
SettableFuture.get(Deadline deadline) |
static Deadline |
Deadline.latest(Deadline... deadlines)
Retrieve the deadline with the most time remaining until it expires
|
void |
Timeout.sleep(Deadline deadline)
Sleep for the duration of this timeout (or until the thread is interrupted, or until the provided deadline expires)
|
static Deadline |
Deadline.soonest(Deadline... deadlines)
Retrieve the deadline with the least time remaining until it expires
|
Deadline |
Timeout.start(Deadline max)
Create a new deadline within a given maximum timeframe; this prevents
|
Copyright © 2016. All rights reserved.