public class PhoneHomeResponse
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
awaitResult(long timeoutInSeconds) |
static PhoneHomeResponse |
createAsynchronousResponse(java.util.concurrent.Future<java.lang.Boolean> phoneHomeTask) |
static PhoneHomeResponse |
createResponse(java.lang.Boolean result) |
java.lang.Boolean |
getImmediateResult()
If Phone Home was called asynchronously: If the result is available, it will be returned, otherwise the task will be cancelled and this will return Boolean.FALSE.
|
boolean |
isDone() |
public static PhoneHomeResponse createResponse(java.lang.Boolean result)
public static PhoneHomeResponse createAsynchronousResponse(java.util.concurrent.Future<java.lang.Boolean> phoneHomeTask)
public java.lang.Boolean getImmediateResult()
public java.lang.Boolean awaitResult(long timeoutInSeconds)
timeoutInSeconds - time to wait before cancelling the taskpublic boolean isDone()