public class MessageTtl
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static MessageTtl |
custom(java.lang.String messageTtlCustom)
Sets the TTL for this specific message to be published.
|
java.lang.String |
getTtlString()
Get the string representation of the message ttl, used as a value
|
static MessageTtl |
never()
Sets the TTL for this specific message to be published and never be expired
|
static MessageTtl |
seconds(int msgTtlSeconds)
Sets the TTL for this specific message to be published
|
java.lang.String |
toString() |
public java.lang.String getTtlString()
public java.lang.String toString()
toString in class java.lang.Objectpublic static MessageTtl seconds(int msgTtlSeconds)
msgTtlSeconds - the ttl in secondspublic static MessageTtl custom(java.lang.String messageTtlCustom)
messageTtlCustom - the ttl in secondspublic static MessageTtl never()