public static interface Message.Mutable extends Message
MessageMessage.MutableADVICE_FIELD, CHANNEL_FIELD, CLIENT_ID_FIELD, CONNECTION_TYPE_FIELD, DATA_FIELD, ERROR_FIELD, EXT_FIELD, ID_FIELD, INTERVAL_FIELD, MAX_INTERVAL_FIELD, MIN_VERSION_FIELD, RECONNECT_FIELD, RECONNECT_HANDSHAKE_VALUE, RECONNECT_NONE_VALUE, RECONNECT_RETRY_VALUE, SUBSCRIPTION_FIELD, SUCCESSFUL_FIELD, SUPPORTED_CONNECTION_TYPES_FIELD, TIMEOUT_FIELD, TIMESTAMP_FIELD, TRANSPORT_FIELD, VERSION_FIELD| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAdvice(boolean create)
Convenience method to retrieve the
Message.ADVICE_FIELD and create it if it does not exist |
java.util.Map<java.lang.String,java.lang.Object> |
getDataAsMap(boolean create)
Convenience method to retrieve the
Message.DATA_FIELD and create it if it does not exist |
java.util.Map<java.lang.String,java.lang.Object> |
getExt(boolean create)
Convenience method to retrieve the
Message.EXT_FIELD and create it if it does not exist |
void |
setChannel(java.lang.String channel) |
void |
setClientId(java.lang.String clientId) |
void |
setData(java.lang.Object data) |
void |
setId(java.lang.String id) |
void |
setSuccessful(boolean successful) |
getAdvice, getChannel, getChannelId, getClientId, getData, getDataAsMap, getExt, getId, getJSON, isMeta, isPublishReply, isSuccessfuljava.util.Map<java.lang.String,java.lang.Object> getAdvice(boolean create)
Message.ADVICE_FIELD and create it if it does not existcreate - whether to create the advice field if it does not existjava.util.Map<java.lang.String,java.lang.Object> getDataAsMap(boolean create)
Message.DATA_FIELD and create it if it does not existcreate - whether to create the data field if it does not existjava.util.Map<java.lang.String,java.lang.Object> getExt(boolean create)
Message.EXT_FIELD and create it if it does not existcreate - whether to create the ext field if it does not existvoid setChannel(java.lang.String channel)
channel - the channel of this messagevoid setClientId(java.lang.String clientId)
clientId - the client id of this messagevoid setData(java.lang.Object data)
data - the data of this messagevoid setId(java.lang.String id)
id - the id of this messagevoid setSuccessful(boolean successful)
successful - the successfulness of this messageCopyright © 2008–2019 The CometD Project. All rights reserved.