public interface Message
extends java.util.Map<java.lang.String,java.lang.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.
|
java.lang.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.
|
Client getClient()
Channel getChannel()
java.lang.String getId()
void setTTL(long ttl)
ttl
- longlong getTTL()
long getCreationTime()