public interface ThriftClientManager
| Modifier and Type | Method and Description |
|---|---|
<T extends org.apache.thrift.TServiceClient> |
createThriftClientBuilder(String thriftClientName,
org.apache.thrift.TServiceClientFactory<T> thriftClientFactory)
Creates a new
ThriftClientBuilder for the named thrift client to be managed by this thrift client manager. |
<T extends org.apache.thrift.TServiceClient> |
getThriftClient(String thriftClientName)
Looks up a named thrift client.
|
boolean |
removeThriftClient(String thriftClientName)
Remove a thrift client from the ThriftClientManager.
|
void |
shutdown()
Shuts down the ThriftClientManager.
|
<T extends org.apache.thrift.TServiceClient> ThriftClientBuilder createThriftClientBuilder(String thriftClientName, org.apache.thrift.TServiceClientFactory<T> thriftClientFactory)
ThriftClientBuilder for the named thrift client to be managed by this thrift client manager.
The returned ThriftClientBuilder is associated with this ThriftClientManager.
The ThriftClient will be created, added to this ThriftClientManager and started when
ThriftClientBuilder.build() is called.
thriftClientName - the name of the thrift client to build. A thrift client name must consist of at least one non-whitespace character.thriftClientFactory - thrift client factory<T extends org.apache.thrift.TServiceClient> ThriftClient<T> getThriftClient(String thriftClientName)
thriftClientName - the name of the thrift client to look forboolean removeThriftClient(String thriftClientName)
thriftClientName - the thrift client namevoid shutdown()
Copyright © 2017-2019 Oracle Corporation. All Rights Reserved.