Class FrameEncoder.Payload

  • Enclosing class:
    FrameEncoder

    public static class FrameEncoder.Payload
    extends java.lang.Object
    An abstraction useful for transparently allocating buffers that can be written to upstream of the FrameEncoder without knowledge of the encoder's frame layout, while ensuring enough space to write the remainder of the frame's contents is reserved.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.nio.ByteBuffer buffer  
      static int MAX_SIZE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()  
      void release()  
      int remaining()  
      • Methods inherited from class java.lang.Object

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

      • buffer

        public final java.nio.ByteBuffer buffer
    • Method Detail

      • remaining

        public int remaining()
      • finish

        public void finish()
      • release

        public void release()