Class TAsyncClient

java.lang.Object
org.apache.thrift.async.TAsyncClient

public abstract class TAsyncClient extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getProtocolFactory

      public TProtocolFactory getProtocolFactory()
    • getTimeout

      public long getTimeout()
    • hasTimeout

      public boolean hasTimeout()
    • setTimeout

      public void setTimeout(long timeout)
    • hasError

      public boolean hasError()
      Is the client in an error state?
      Returns:
      If client in an error state?
    • getError

      public Exception getError()
      Get the client's error - returns null if no error
      Returns:
      Get the client's error.

      returns null if no error

    • checkReady

      protected void checkReady()
    • onComplete

      protected void onComplete()
      Called by delegate method when finished
    • onError

      protected void onError(Exception exception)
      Called by delegate method on error.
      Parameters:
      exception - the exception indicating the current error condition.