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, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
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
protected Channel channel
protected Client client
protected String id
protected long creationTime
protected MessageImpl(String id)
public Channel getChannel()
Message
getChannel
in interface Message
public Client getClient()
Message
public long getCreationTime()
Message
getCreationTime
in interface Message
public long getTTL()
Message
public String getId()
Message
protected void setChannel(Channel channel)
protected void setClient(Client client)
public void setTTL(long TTL)
Message
Copyright © 2017 JBoss by Red Hat. All rights reserved.