public class ThriftClient<T extends org.apache.thrift.TServiceClient> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ThriftClient.Callback<T> |
| Modifier and Type | Method and Description |
|---|---|
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,
long tryTime,
int tryCount) |
public static ThriftClient build(Class type)
public void execute(String address, ThriftClient.Callback<T> callback) throws ThriftConnectException
ThriftConnectExceptionpublic void tryExecute(String address, ThriftClient.Callback<T> callback, long tryTime, int tryCount) throws ThriftConnectException
ThriftConnectExceptionpublic T brow(String socketAddress) throws ThriftConnectException
ThriftConnectExceptionCopyright © 2021. All rights reserved.