Class Message
- java.lang.Object
-
- software.amazon.awssdk.crt.CrtResource
-
- software.amazon.awssdk.crt.eventstream.Message
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class Message extends CrtResource
Wrapper around an instance of aws-event-stream-message. It's auto closable, so be sure to call close when finished with the object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.awssdk.crt.CrtResource
CrtResource.ResourceInstance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
getMessageBuffer()
Get the binary format of this message (i.e.-
Methods inherited from class software.amazon.awssdk.crt.CrtResource
addRef, addReferenceTo, close, collectNativeResource, collectNativeResources, decRef, getNativeHandle, getResourceLogDescription, isNull, logNativeResources, logNativeResources, removeReferenceTo, setDescription, waitForNoResources
-
-
-
-
Constructor Detail
-
Message
public Message(java.util.List<Header> headers, byte[] payload)
Creates a message using headers and payload.- Parameters:
headers
- list of headers to include in the message's header block. Can be null.payload
- payload body to include in the message's payload block. Can be null.
-
-