Enum EjectionMethod

  • All Implemented Interfaces:
    Serializable, Comparable<EjectionMethod>

    public enum EjectionMethod
    extends Enum<EjectionMethod>
    The ejection method used on the bucket. Value Ejection needs more system memory, but provides the best performance. Full Ejection reduces the memory overhead requirement.
    • Enum Constant Detail

      • VALUE

        public static final EjectionMethod VALUE
        Value ejection - for couchbase buckets only.

        During ejection, only the value will be ejected (key and metadata will remain in memory).

      • FULL

        public static final EjectionMethod FULL
        Full ejection - for couchbase buckets only.

        During ejection, everything (including key, metadata, and value) will be ejected.

      • NONE

        public static final EjectionMethod NONE
        No ejection at all - for ephemeral buckets only.

        Specifying "NO ejection" means that the bucket will not evict items from the cache if the cache is full: this type of eviction policy should be used for in-memory database use-cases.

      • NRU

        public static final EjectionMethod NRU
        Not recently used ejection - for ephemeral buckets only.

        Specifying "NRU ejection" means that items not recently used will be evicted from memory, when all memory in the bucket is used: this type of eviction policy should be used for caching use-cases.

    • Method Detail

      • values

        public static EjectionMethod[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EjectionMethod c : EjectionMethod.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EjectionMethod 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