Messages only remain to support one-way messaging which is deprecated at this release. This interface will be removed in a future release.
@Deprecated public interface TopicMessage extends DataMessage
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 |
---|---|
TopicMessage |
duplicate()
Deprecated.
Creates an exact duplicate of the message.
|
String |
getTopicName()
Deprecated.
Returns the message topic name.
|
boolean |
isDelta()
Deprecated.
since 6.2
Delta messages are no longer exposed to the Publisher API therefore this would always return false. This will be removed in a future release. |
boolean |
isFetchReply()
Deprecated.
since 6.2
This is a redundant method which always returns false. This will be removed in a future release. |
boolean |
isFor(String topicPattern)
Deprecated.
Indicates whether the message is for a named topic or topic selector.
|
boolean |
isForTopic(String topicName)
Deprecated.
Indicates whether the message is for a named topic.
|
boolean |
isTopicLoad()
Deprecated.
since 6.2
All messages exposed to the Publisher API are now load messages therefore this would always return true. This will be removed in a future release. |
asByteBuffer, asBytes, asFields, asRecords, asString, getCharset, getInputStream, getReader, hasRemaining, length, nextByte, nextBytes, nextField, nextRecord, remaining, rewind
getHeader, getHeaders, isTopicMessage, setHeaders, setHeaders, size, toString
String getTopicName()
boolean isFor(String topicPattern)
If it is known that the argument is a full topic name then use of
isForTopic(String)
is more efficient.
topicPattern
- a full topic name or topic selector pattern.boolean isForTopic(String topicName)
topicName
- a full topic name.@Deprecated boolean isTopicLoad()
All messages exposed to the Publisher API are now load messages therefore this would always return true. This will be removed in a future release.
@Deprecated boolean isFetchReply()
This is a redundant method which always returns false. This will be removed in a future release.
@Deprecated boolean isDelta()
Delta messages are no longer exposed to the Publisher API therefore this would always return false. This will be removed in a future release.
TopicMessage duplicate() throws MessageException
MessageException
- if unable to create a duplicate.Copyright © 2020 Push Technology Ltd. All Rights Reserved.