public interface Message extends Map<String,Object>
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel()
Returns a reference to the channel that this message was published throuhg
|
Client |
getClient()
Returns a reference to the client that sent this message
|
long |
getCreationTime()
returns the timestamp in milliseconds(System.currentTimeMillis()) of when this message was created.
|
String |
getId()
Returns the unique id of this message
|
long |
getTTL()
Returns the time to live (in milliseconds) for this message
|
void |
setTTL(long ttl)
Sets the time to live in milliseconds.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Client getClient()
Channel getChannel()
String getId()
void setTTL(long ttl)
ttl
- longlong getTTL()
long getCreationTime()
Copyright © 2018 JBoss by Red Hat. All rights reserved.