public abstract class Message
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Message.Codec<M extends Message> |
static class |
Message.Direction |
static class |
Message.Request |
static class |
Message.Response |
static class |
Message.Type |
Modifier and Type | Field and Description |
---|---|
protected Connection |
connection |
protected ProtocolVersion |
forcedProtocolVersion |
protected static org.slf4j.Logger |
logger |
Message.Type |
type |
Modifier | Constructor and Description |
---|---|
protected |
Message(Message.Type type) |
Modifier and Type | Method and Description |
---|---|
void |
attach(Connection connection) |
Connection |
connection() |
java.lang.String |
debugString() |
Envelope |
encode(ProtocolVersion version) |
java.util.Map<java.lang.String,java.nio.ByteBuffer> |
getCustomPayload() |
Envelope |
getSource() |
int |
getStreamId() |
void |
setCustomPayload(java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload) |
void |
setSource(Envelope source) |
Message |
setStreamId(int streamId) |
protected static final org.slf4j.Logger logger
public final Message.Type type
protected Connection connection
protected ProtocolVersion forcedProtocolVersion
protected Message(Message.Type type)
public void attach(Connection connection)
public Connection connection()
public Message setStreamId(int streamId)
public int getStreamId()
public void setSource(Envelope source)
public Envelope getSource()
public java.util.Map<java.lang.String,java.nio.ByteBuffer> getCustomPayload()
public void setCustomPayload(java.util.Map<java.lang.String,java.nio.ByteBuffer> customPayload)
public java.lang.String debugString()
public Envelope encode(ProtocolVersion version)
Copyright © 2009- The Apache Software Foundation