Interface DispatchRetentionPolicy
public interface DispatchRetentionPolicy
The retention policy configured for messages in Dispatch Mode.
Currently only
MESSAGE_EXPIRE_POLICY
is available. For more information about
retention policies, see Retention
Policy.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Dedicated Builder -
Method Summary
-
Method Details
-
getRetentionType
DispatchRetentionPolicyType getRetentionType()Get retentionType- Returns:
- retentionType
-
getTtlDays
Long getTtlDays()Optional. The days before a message is eligible for deletion. The valid range is[0 - 7]
. In the case of a0
day TTL, messages aren't stored at all. Note the retention cleanup job runs once every twenty-four hours, so messages are not deleted on the minute they become eligible for deletion.- Returns:
- ttlDays
-
builder
Getting builder- Returns:
- New Builder instance
-