Enum EvictionPolicyType

java.lang.Object
java.lang.Enum<EvictionPolicyType>
com.couchbase.client.java.manager.bucket.EvictionPolicyType
All Implemented Interfaces:
Serializable, Comparable<EvictionPolicyType>, java.lang.constant.Constable

public enum EvictionPolicyType extends Enum<EvictionPolicyType>
The eviction policy for a bucket.
  • Enum Constant Details

    • FULL

      public static final EvictionPolicyType FULL
      During ejection, everything (including key, metadata, and value) will be ejected.

      Full Ejection reduces the memory overhead requirement, at the cost of performance.

      This value is only valid for buckets of type BucketType.COUCHBASE.

    • VALUE_ONLY

      public static final EvictionPolicyType VALUE_ONLY
      During ejection, only the value will be ejected (key and metadata will remain in memory).

      Value Ejection needs more system memory, but provides better performance than Full Ejection.

      This value is only valid for buckets of type BucketType.COUCHBASE.

    • NOT_RECENTLY_USED

      public static final EvictionPolicyType NOT_RECENTLY_USED
      When the memory quota is reached, Couchbase Server ejects data that has not been used recently.

      This value is only valid for buckets of type BucketType.EPHEMERAL.

    • NO_EVICTION

      public static final EvictionPolicyType NO_EVICTION
      Couchbase Server keeps all data until explicitly deleted, but will reject any new data if you reach the quota (dedicated memory) you set for your bucket.

      This value is only valid for buckets of type BucketType.EPHEMERAL.

  • Method Details

    • values

      public static EvictionPolicyType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EvictionPolicyType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • alias

      @Internal public String alias()