Skip to main content
Package: com.phoenix_int.aserver.client.v2 Class Hierarchy
Implemented Interfaces
Declaration
Callback object which uses a monitor to allow the caller to block until a response is received.

Constructor Summary

Method Summary

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

AnalysisServerWaitCallback

Method Detail

getResponse

Get the response, or null if it has not been received.

waitForResponse

Wait until the response has been received, if it has not already. Returns:
  • the response
Throws:
  • java.lang.InterruptedException - if the current thread is interrupted during the wait

waitForResponse

Wait until the response has been received, if it has not already. Parameters:
  • timeout - the amount of time in ms to wait; 0 for infinite
Returns:
  • the response, or null if it has not yet been received
Throws:
  • java.lang.InterruptedException - if the current thread is interrupted during the wait

responseReceived

Callback when a response is received. Parameters:
  • response - the response
Returns:
  • true if this callback should be removed
Specified by: