public class JSONMessage extends Message
JSONProtocolParser
to aid in
building Message instances parsed from the
JSONProtocol
(i.e. the "amps" transport protocol).
Generally not used directly by end user.Message.AckType, Message.Command, Message.Options, Message.Reason, Message.SerializationResult, Message.Status
_AckType, _BatchSize, _Bookmark, _client, _ClientName, _Command, _CommandId, _CorrelationId, _Data, _Expiration, _fields, _Filter, _GroupSeqNo, _LeasePeriod, _Length, _Matches, _MessageType, _Options, _OrderBy, _Password, _QueryId, _Reason, _RecordsDeleted, _RecordsInserted, _RecordsReturned, _RecordsUpdated, _Sequence, _SowKey, _SowKeys, _Status, _SubId, _SubIds, _Timestamp, _Topic, _TopicMatches, _TopN, _UserId, _Version, decoder, encoder
Constructor and Description |
---|
JSONMessage(java.nio.charset.CharsetEncoder encoder,
java.nio.charset.CharsetDecoder decoder)
Initializes a new instance of the JSONMessage class.
|
Modifier and Type | Method and Description |
---|---|
Message |
copy()
Copies the JSON Message to a new JSON Message.
|
Message.SerializationResult |
serialize(java.nio.ByteBuffer b)
Serializes the JSON message.
|
_copyTo, ack, ack, ack, ack, getAckType, getAckTypeOutgoing, getBatchSize, getBookmark, getBookmarkRaw, getBookmarkSeqNo, getBuffer, getClient, getClientName, getClientNameRaw, getCommand, getCommandId, getCommandId, getCommandIdRaw, getCorrelationId, getCorrelationIdRaw, getData, getDataRaw, getDecoder, getEncoder, getExpiration, getExpirationRaw, getFilter, getFilterRaw, getGroupSeqNo, getLeasePeriod, getLeasePeriodRaw, getLength, getMatches, getMessageType, getOptions, getOptionsRaw, getOrderBy, getOrderByRaw, getPassword, getPasswordRaw, getQueryId, getQueryId, getQueryIdRaw, getRawBufferLength, getRawBufferOffset, getReason, getReasonText, getRecordsDeleted, getRecordsInserted, getRecordsReturned, getRecordsUpdated, getSequence, getSequenceRaw, getSowKey, getSowKeyRaw, getSowKeys, getSowKeysRaw, getStatus, getSubId, getSubId, getSubIdRaw, getSubIds, getSubIdsRaw, getSubscription, getTimestamp, getTimestampRaw, getTopic, getTopicMatches, getTopicRaw, getTopN, getUserId, getUserIdRaw, getVersion, getVersionAsInt, getVersionRaw, isAckTypeNull, isBatchSizeNull, isBookmarkNull, isClientNameNull, isCommandIdNull, isCommandNull, isCorrelationIdNull, isDataNull, isExpirationNull, isFilterNull, isGroupSeqNoNull, isIgnoreAutoAck, isLeasePeriodNull, isLengthNull, isMatchesNull, isMessageTypeNull, isOptionsNull, isOrderByNull, isPasswordNull, isQueryIdNull, isReasonNull, isRecordsDeletedNull, isRecordsInsertedNull, isRecordsReturnedNull, isRecordsUpdatedNull, isSequenceNull, isSowKeyNull, isSowKeysNull, isSubIdNull, isSubIdsNull, isTimestampNull, isTopicMatchesNull, isTopicNull, isTopNNull, isUserIdNull, isVersionNull, reset, setAckType, setAckType, setBatchSize, setBookmark, setBookmark, setBookmarkSeqNo, setBuffer, setClientName, setClientName, setCommand, setCommand, setCommandId, setCommandId, setCommandId, setCorrelationId, setData, setData, setExpiration, setFilter, setFilter, setGroupSeqNo, setIgnoreAutoAck, setLength, setMatches, setMessageType, setOptions, setOrderBy, setOrderBy, setPassword, setPassword, setQueryId, setQueryId, setQueryId, setRawBufferLength, setRawBufferOffset, setReason, setRecordsDeleted, setRecordsInserted, setRecordsReturned, setRecordsUpdated, setSequence, setSowKey, setSowKey, setSowKeys, setSowKeys, setStatus, setSubId, setSubId, setSubId, setSubIds, setSubIds, setSubscription, setTimestamp, setTimestamp, setTopic, setTopic, setTopicMatches, setTopN, setUserId, setUserId, setVersion, setVersion, toString
public JSONMessage(java.nio.charset.CharsetEncoder encoder, java.nio.charset.CharsetDecoder decoder)
encoder
- The encoding used for the message.decoder
- The decoding used for the message.public Message.SerializationResult serialize(java.nio.ByteBuffer b)