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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetClient(TProtocol prot)Get a brand-new T using prot as both the input and output protocol.TgetClient(TProtocol iprot, TProtocol oprot)Get a brand new T using the specified input and output protocols.
-
-
-
Method Detail
-
getClient
T getClient(TProtocol prot)
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
T getClient(TProtocol iprot, TProtocol oprot)
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
-
-