Interface ServerMessage.Mutable
- All Superinterfaces:
Map<String,Object>, Message, Message.Mutable, ServerMessage
- All Known Implementing Classes:
ServerMessageImpl
- Enclosing interface:
ServerMessage
The mutable version of a
ServerMessage-
Nested Class Summary
Nested classes/interfaces inherited from interface Message
Message.MutableNested classes/interfaces inherited from interface ServerMessage
ServerMessage.Mutable -
Field Summary
Fields inherited from interface Message
ADVICE_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 -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAssociated(ServerMessage.Mutable message) voidsetLazy(boolean lazy) A lazy message does not provoke immediately delivery to the client but it will be delivered at first occasion or after a timeout expiresMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface Message
getAdvice, getChannel, getChannelId, getClientId, getData, getDataAsMap, getExt, getId, isMeta, isPublishReply, isSuccessfulMethods inherited from interface Message.Mutable
getAdvice, getDataAsMap, getExt, setChannel, setClientId, setData, setId, setSuccessfulMethods inherited from interface ServerMessage
getAssociated, getBayeuxContext, getServerTransport, isLazy
-
Method Details
-
setAssociated
- Parameters:
message- the message associated with this message
-
setLazy
void setLazy(boolean lazy) A lazy message does not provoke immediately delivery to the client but it will be delivered at first occasion or after a timeout expires- Parameters:
lazy- whether the message is lazy
-