Class ProcessFunction<I,T extends TBase,A extends TBase>

java.lang.Object
org.apache.thrift.ProcessFunction<I,T,A>

public abstract class ProcessFunction<I,T extends TBase,A extends TBase> extends Object
  • Constructor Details

    • ProcessFunction

      public ProcessFunction(String methodName)
  • Method Details

    • process

      public final void process(int seqid, TProtocol iprot, TProtocol oprot, I iface) throws TException
      Throws:
      TException
    • rethrowUnhandledExceptions

      protected boolean rethrowUnhandledExceptions()
    • isOneway

      public abstract boolean isOneway()
    • getResult

      public abstract TBase<?,?> getResult(I iface, T args) throws TException
      Throws:
      TException
    • getEmptyArgsInstance

      public abstract T getEmptyArgsInstance()
    • getEmptyResultInstance

      public abstract A getEmptyResultInstance()
      Returns null when this is a oneWay function.
    • getMethodName

      public String getMethodName()