Class TAsyncMethodCall<T>

  • Type Parameters:
    T - The return type of the encapsulated method call.

    public abstract class TAsyncMethodCall<T>
    extends java.lang.Object
    Encapsulates an async method call.

    Need to generate:

    • protected abstract void write_args(TProtocol protocol)
    • protected abstract T getResult() throws <Exception_1>, <Exception_2>, ...
    • Method Detail

      • isFinished

        protected boolean isFinished()
      • getStartTime

        protected long getStartTime()
      • getSequenceId

        protected long getSequenceId()
      • hasTimeout

        public boolean hasTimeout()
      • getTimeoutTimestamp

        public long getTimeoutTimestamp()
      • getResult

        protected abstract T getResult()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • prepareMethodCall

        protected void prepareMethodCall()
                                  throws TException
        Initialize buffers.
        Throws:
        TException - if buffer initialization fails
      • getFrameBuffer

        protected java.nio.ByteBuffer getFrameBuffer()
      • onError

        protected void onError​(java.lang.Exception e)