public interface AttachableTopicMessage extends TopicMessage
TopicMessage
that has an attachment.
Attachments may be used to hold information in a message that has no effect upon the transmitted message content. Attachments are only current for the Java VM in which they were created. The attachment does not form part of the message that is serialized for sending.
EMPTY_FIELD, EMPTY_FIELD_CHAR, EMPTY_FIELD_STRING, FIELD_DELIMITER, FIELD_DELIMITER_CHAR, FIELD_DELIMITER_STRING, FIELD_MU, LIST_DELIMITER, LIST_DELIMITER_CHAR, LIST_DELIMITER_STRING, MESSAGE_SEPARATOR, MESSAGE_SEPARATOR_CHAR, RECORD_DELIMITER, RECORD_DELIMITER_CHAR, RECORD_DELIMITER_STRING, RECORD_MU
Modifier and Type | Method and Description |
---|---|
Object |
getAttachment()
Returns the message attachment.
|
boolean |
setAttachment(Object attachment)
Sets the message attachment.
|
duplicate, getAckId, getAckTimeout, getTopicName, isAckPending, isAckRequired, isDelta, isFetchReply, isFor, isForTopic, isPagedLoad, isServiceLoad, isTopicLoad, isTopicNotifyLoad, setAckRequired, setAckTimeout
asByteBuffer, asBytes, asFields, asRecords, asRecords, asString, available, getCharset, getEncoding, getInputStream, getOutputStream, getReader, hasRemaining, length, nextByte, nextBytes, nextField, nextObject, nextRecord, nextRecord, put, put, put, put, put, putFields, putFields, putFields, putObject, putRecord, putRecord, putRecord, putRecords, putRecords, remaining, rewind, setCharset, setEncoding
getHeader, getHeaders, isTopicMessage, setHeaders, setHeaders, size, toMessage, toString
boolean setAttachment(Object attachment)
Note that the attachment cannot be set or changed after the message has been published or sent (at which point it becomes locked).
attachment
- the attachment.Object getAttachment()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.