public class Message extends Object
Constructor and Description |
---|
Message(Map<String,HeaderValue> headers,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
static Message |
decode(ByteBuffer buf) |
static Message |
decode(software.amazon.eventstream.Prelude prelude,
ByteBuffer buf)
Decodes a message with an already decoded prelude.
|
void |
encode(OutputStream os) |
boolean |
equals(Object o) |
Map<String,HeaderValue> |
getHeaders() |
byte[] |
getPayload() |
int |
hashCode() |
ByteBuffer |
toByteBuffer() |
String |
toString() |
public Message(Map<String,HeaderValue> headers, byte[] payload)
public Map<String,HeaderValue> getHeaders()
public byte[] getPayload()
public static Message decode(ByteBuffer buf)
public static Message decode(software.amazon.eventstream.Prelude prelude, ByteBuffer buf)
prelude
- Decoded prelude of message.buf
- Data of message (including prelude which will be skipped over).public ByteBuffer toByteBuffer()
public void encode(OutputStream os)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.