org.apache.thrift.async
Class TAsyncClient

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

public abstract class TAsyncClient
extends java.lang.Object


Field Summary
protected  TAsyncClientManager manager
           
protected  TProtocolFactory protocolFactory
           
protected  TNonblockingTransport transport
           
 
Constructor Summary
TAsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager manager, TNonblockingTransport transport)
           
 
Method Summary
protected  void checkReady()
           
 java.lang.Throwable getError()
          Get the client's error - returns null if no error
 TProtocolFactory getProtocolFactory()
           
 boolean hasError()
          Is the client in an error state?
protected  void onComplete()
          Called by delegate method when finished
protected  void onError(java.lang.Throwable throwable)
          Called by delegate method on error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

protocolFactory

protected final TProtocolFactory protocolFactory

transport

protected final TNonblockingTransport transport

manager

protected final TAsyncClientManager manager
Constructor Detail

TAsyncClient

public TAsyncClient(TProtocolFactory protocolFactory,
                    TAsyncClientManager manager,
                    TNonblockingTransport transport)
Method Detail

getProtocolFactory

public TProtocolFactory getProtocolFactory()

hasError

public boolean hasError()
Is the client in an error state?

Returns:

getError

public java.lang.Throwable getError()
Get the client's error - returns null if no error

Returns:

checkReady

protected void checkReady()

onComplete

protected void onComplete()
Called by delegate method when finished


onError

protected void onError(java.lang.Throwable throwable)
Called by delegate method on error