net.csdn.modules.thrift
Class ThriftClient<T extends org.apache.thrift.TServiceClient>
java.lang.Object
net.csdn.modules.thrift.ThriftClient<T>
public class ThriftClient<T extends org.apache.thrift.TServiceClient>
- extends Object
6/3/13 WilliamZhu(allwefantasy@gmail.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.