Interface RetentionPolicy


public interface RetentionPolicy
The retention policy configured for the app. For more information about retention policies, see Retention Policy.
  • Method Details

    • getRetentionType

      RetentionPolicyType getRetentionType()
      Get retentionType
      Returns:
      retentionType
    • getTtlDays

      Long getTtlDays()
      Optional. The days before a message or conversation is eligible for deletion. Default value is 180. The ttl_days value has no effect when retention_type is PERSIST_RETENTION_POLICY . The valid values for this field are [1 - 3650]. Note that retention cleanup job runs once every twenty-four hours which can lead to delay i.e., messages and conversations are not deleted on the minute they become eligible for deletion.
      Returns:
      ttlDays
    • builder

      static RetentionPolicy.Builder builder()
      Getting builder
      Returns:
      New Builder instance