org.apache.blur.thirdparty.thrift_0_9_0.async
Class TAsyncClient

java.lang.Object
  extended by org.apache.blur.thirdparty.thrift_0_9_0.async.TAsyncClient
Direct Known Subclasses:
Blur.AsyncClient

public abstract class TAsyncClient
extends Object


Constructor Summary
TAsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager manager, TNonblockingTransport transport)
           
TAsyncClient(TProtocolFactory protocolFactory, TAsyncClientManager manager, TNonblockingTransport transport, long timeout)
           
 
Method Summary
 Exception 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:
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


Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.