Class PhoneHomeResponse
- java.lang.Object
-
- com.synopsys.integration.phonehome.PhoneHomeResponse
-
public class PhoneHomeResponse extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.BooleanawaitResult(long timeoutInSeconds)static PhoneHomeResponsecreateAsynchronousResponse(java.util.concurrent.Future<java.lang.Boolean> phoneHomeTask)static PhoneHomeResponsecreateResponse(java.lang.Boolean result)java.lang.BooleangetImmediateResult()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.booleanisDone()
-
-
-
Method Detail
-
createResponse
public static PhoneHomeResponse createResponse(java.lang.Boolean result)
-
createAsynchronousResponse
public static PhoneHomeResponse createAsynchronousResponse(java.util.concurrent.Future<java.lang.Boolean> phoneHomeTask)
-
getImmediateResult
public 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. If Phone Home was called synchronously: The result of the synchronous call will be returned.
-
awaitResult
public java.lang.Boolean awaitResult(long timeoutInSeconds)
- Parameters:
timeoutInSeconds- time to wait before cancelling the task
-
isDone
public boolean isDone()
-
-