org.apache.thrift.async
Class TAsyncClient

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

public abstract class TAsyncClient
extends java.lang.Object


Constructor Summary
TAsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager manager, TNonblockingTransport transport)
           
TAsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager manager, TNonblockingTransport transport, long timeout)
           
 
Method Summary
 java.lang.Throwable getError()
          Get the client's error - returns null if no error
 TProtocolFactory getProtocolFactory()
           
 long getTimeout()
           
 boolean hasError()
          Is the client in an error state?
 boolean hasTimeout()
           
 void setTimeout(long timeout)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TAsyncClient

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

TAsyncClient

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

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:

getError

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

Returns:


Copyright © 2010. All Rights Reserved.