net.csdn.modules.thrift
Class ThriftClient<T extends org.apache.thrift.TServiceClient>

java.lang.Object
  extended by net.csdn.modules.thrift.ThriftClient<T>

public class ThriftClient<T extends org.apache.thrift.TServiceClient>
extends Object

6/3/13 WilliamZhu(allwefantasy@gmail.com)


Nested Class Summary
static interface ThriftClient.Callback<T>
           
 
Method Summary
 void back(String socketAddress, T value)
           
 T brow(String socketAddress)
           
static ThriftClient build(Class type)
           
 void execute(String address, ThriftClient.Callback<T> callback)
           
 void tryExecute(String address, ThriftClient.Callback<T> callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public static ThriftClient build(Class type)

execute

public void execute(String address,
                    ThriftClient.Callback<T> callback)
             throws ThriftConnectException
Throws:
ThriftConnectException

tryExecute

public void tryExecute(String address,
                       ThriftClient.Callback<T> callback)
                throws ThriftConnectException
Throws:
ThriftConnectException

brow

public T brow(String socketAddress)
                                                throws ThriftConnectException
Throws:
ThriftConnectException

back

public void back(String socketAddress,
                 T value)


Copyright © 2014. All Rights Reserved.