AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
protected Channel |
channel |
protected Client |
client |
protected long |
creationTime |
protected String |
id |
| Modifier | Constructor and Description |
|---|---|
protected |
MessageImpl(String id) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
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
|
protected void |
setChannel(Channel channel) |
protected void |
setClient(Client client) |
void |
setTTL(long TTL)
Sets the time to live in milliseconds.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesprotected Channel channel
protected Client client
protected String id
protected long creationTime
protected MessageImpl(String id)
public Channel getChannel()
MessagegetChannel in interface Messagepublic Client getClient()
Messagepublic long getCreationTime()
MessagegetCreationTime in interface Messagepublic long getTTL()
Messagepublic String getId()
Messageprotected void setChannel(Channel channel)
protected void setClient(Client client)
public void setTTL(long TTL)
MessageCopyright © 2016 JBoss by Red Hat. All rights reserved.