| Package | Description |
|---|---|
| com.peterphi.std.system.exec | |
| com.peterphi.std.threading |
| Modifier and Type | Method and Description |
|---|---|
int |
BaseExeced.waitForExit(Deadline deadline)
Waits for the process to exit; this method blocks until the process has completed (at which point it returns the process
exit code) or until
deadline has elapsed, at which point it returns Integer.MIN_VALUE |
int |
BaseExeced.waitForExit(Deadline deadline,
int expected)
Wait until
deadline for the process to exit, expecting the return code to be expected. |
| 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
|
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 © 2014. All Rights Reserved.