Package org.apache.thrift
Interface TServiceClientFactory<T extends TServiceClient>
- Type Parameters:
T
- the type of TServiceClient to get.
public interface TServiceClientFactory<T extends TServiceClient>
A TServiceClientFactory provides a general way to get a TServiceClient connected to a remote
TService via a protocol.
-
Method Summary
-
Method Details
-
getClient
Get a brand-new T using prot as both the input and output protocol.- Parameters:
prot
- The protocol to use for getting T.- Returns:
- A brand-new T using prot as both the input and output protocol.
-
getClient
Get a brand new T using the specified input and output protocols. The input and output protocols may be the same instance.- Parameters:
iprot
- The input protocol to use for getting T.oprot
- The output protocol to use for getting T.- Returns:
- a brand new T using the specified input and output protocols
-