Class PhoneHomeResponse


  • public class PhoneHomeResponse
    extends java.lang.Object
    • 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()