public class RetentionPolicies extends Object
When you set a retention policy you must set **both** a *size limit* and a *time limit*. In the case where you don't want to limit by either time or set, the value must be set to `-1`. Retention policy will be effectively disabled and it won't prevent the deletion of acknowledged messages when either size or time limit is set to `0`. Infinite retention can be achieved by setting both time and size limits to `-1`.
| Constructor and Description |
|---|
RetentionPolicies() |
RetentionPolicies(int retentionTimeInMinutes,
int retentionSizeInMB) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
long |
getRetentionSizeInMB() |
int |
getRetentionTimeInMinutes() |
int |
hashCode() |
String |
toString() |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.