Class FixedSizeHeaderReader

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.ByteBuffer byteBuffer  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clear the header and make it available to read a new header.
      protected abstract int headerSize()  
      boolean isComplete()  
      protected abstract void onComplete()
      Actions (e.g. validation) to carry out when the header is complete.
      boolean read​(TTransport transport)
      (Nonblocking) Read fields from underlying transport layer.
      byte[] toBytes()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • byteBuffer

        protected final java.nio.ByteBuffer byteBuffer
    • Constructor Detail

      • FixedSizeHeaderReader

        public FixedSizeHeaderReader()