Class Envelope


  • public class Envelope
    extends java.lang.Object
    • Field Detail

      • body

        public final io.netty.buffer.ByteBuf body
    • Constructor Detail

      • Envelope

        public Envelope​(Envelope.Header header,
                        io.netty.buffer.ByteBuf body)
        An on-wire message envelope consists of a header and a body. The header is defined the following way in native protocol version 3 and later: 0 8 16 24 32 40 +---------+---------+---------+---------+---------+ | version | flags | stream | opcode | +---------+---------+---------+---------+---------+ | length | +---------+---------+---------+---------+
    • Method Detail

      • retain

        public void retain()
      • release

        public boolean release()
      • clone

        public Envelope clone()
        Overrides:
        clone in class java.lang.Object
      • encodeHeader

        public io.netty.buffer.ByteBuf encodeHeader()
      • encodeHeaderInto

        public void encodeHeaderInto​(java.nio.ByteBuffer buf)
      • encodeInto

        public void encodeInto​(java.nio.ByteBuffer buf)
      • with

        public Envelope with​(io.netty.buffer.ByteBuf newBody)