Class TAsyncMethodCall<T>

  • Type Parameters:
    T -

    public abstract class TAsyncMethodCall<T>
    extends java.lang.Object
    Encapsulates an async method call Need to generate: - private void write_args(TProtocol protocol) - public T getResult() throws , , ...
    • Method Detail

      • isFinished

        protected boolean isFinished()
      • getStartTime

        protected long getStartTime()
      • getSequenceId

        protected long getSequenceId()
      • hasTimeout

        public boolean hasTimeout()
      • getTimeoutTimestamp

        public long getTimeoutTimestamp()
      • prepareMethodCall

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

        protected java.nio.ByteBuffer getFrameBuffer()
      • transition

        protected void transition​(java.nio.channels.SelectionKey key)
        Transition to next state, doing whatever work is required. Since this method is only called by the selector thread, we can make changes to our select interests without worrying about concurrency.
        Parameters:
        key -
      • onError

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