public class Envelope
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Envelope.Compressor |
static class |
Envelope.Decoder |
static class |
Envelope.Decompressor |
static class |
Envelope.Encoder |
static class |
Envelope.Header |
Modifier and Type | Field and Description |
---|---|
io.netty.buffer.ByteBuf |
body |
Envelope.Header |
header |
static byte |
PROTOCOL_VERSION_MASK |
Constructor and Description |
---|
Envelope(Envelope.Header header,
io.netty.buffer.ByteBuf body)
An on-wire message envelope consists of a header and a body.
|
Modifier and Type | Method and Description |
---|---|
Envelope |
clone() |
static Envelope |
create(Message.Type type,
int streamId,
ProtocolVersion version,
java.util.EnumSet<Envelope.Header.Flag> flags,
io.netty.buffer.ByteBuf body) |
void |
encodeHeaderInto(java.nio.ByteBuffer buf) |
void |
encodeInto(java.nio.ByteBuffer buf) |
boolean |
release() |
void |
retain() |
Envelope |
with(io.netty.buffer.ByteBuf newBody) |
public static final byte PROTOCOL_VERSION_MASK
public final Envelope.Header header
public final io.netty.buffer.ByteBuf body
public Envelope(Envelope.Header header, io.netty.buffer.ByteBuf body)
public void retain()
public boolean release()
public Envelope clone()
clone
in class java.lang.Object
public static Envelope create(Message.Type type, int streamId, ProtocolVersion version, java.util.EnumSet<Envelope.Header.Flag> flags, io.netty.buffer.ByteBuf body)
public void encodeHeaderInto(java.nio.ByteBuffer buf)
public void encodeInto(java.nio.ByteBuffer buf)
public Envelope with(io.netty.buffer.ByteBuf newBody)
Copyright © 2009-2021 The Apache Software Foundation