Package org.apache.thrift
Class TServiceClient
- java.lang.Object
-
- org.apache.thrift.TServiceClient
-
public abstract class TServiceClient extends java.lang.ObjectA TServiceClient is used to communicate with a TService implementation across protocols and transports.
-
-
Constructor Summary
Constructors Constructor Description TServiceClient(TProtocol prot)TServiceClient(TProtocol iprot, TProtocol oprot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TProtocolgetInputProtocol()Get the TProtocol being used as the input (read) protocol.TProtocolgetOutputProtocol()Get the TProtocol being used as the output (write) protocol.protected voidreceiveBase(TBase<?,?> result, java.lang.String methodName)protected voidsendBase(java.lang.String methodName, TBase<?,?> args)protected voidsendBaseOneway(java.lang.String methodName, TBase<?,?> args)
-
-
-
Method Detail
-
getInputProtocol
public TProtocol getInputProtocol()
Get the TProtocol being used as the input (read) protocol.- Returns:
- the TProtocol being used as the input (read) protocol.
-
getOutputProtocol
public TProtocol getOutputProtocol()
Get the TProtocol being used as the output (write) protocol.- Returns:
- the TProtocol being used as the output (write) protocol.
-
sendBase
protected void sendBase(java.lang.String methodName, TBase<?,?> args) throws TException- Throws:
TException
-
sendBaseOneway
protected void sendBaseOneway(java.lang.String methodName, TBase<?,?> args) throws TException- Throws:
TException
-
receiveBase
protected void receiveBase(TBase<?,?> result, java.lang.String methodName) throws TException
- Throws:
TException
-
-