Enum PersistenceType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PersistenceType>

    public enum PersistenceType
    extends java.lang.Enum<PersistenceType>
    Enums of persistence types in Venice.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BDB
      Persistent storage engine that writes to durable media and maintains a B+ tree in the Java heap.
      BLACK_HOLE
      Fastest lock-free most secure of all storage engines.
      CACHE
      Similar to IN_MEMORY but with different retention rules of data (that is, data is evicted under certain circumstances)
      IN_MEMORY
      Volatile storage engine based on a simple Java ConcurrentHashMap.
      ROCKS_DB
      Persistent storage engine that writes to durable media and maintains an off-heap in-memory index.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int value  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static PersistenceType getPersistenceTypeFromInt​(int i)  
      static PersistenceType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static PersistenceType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • IN_MEMORY

        public static final PersistenceType IN_MEMORY
        Volatile storage engine based on a simple Java ConcurrentHashMap.
      • BDB

        public static final PersistenceType BDB
        Persistent storage engine that writes to durable media and maintains a B+ tree in the Java heap.
      • ROCKS_DB

        public static final PersistenceType ROCKS_DB
        Persistent storage engine that writes to durable media and maintains an off-heap in-memory index.
      • BLACK_HOLE

        public static final PersistenceType BLACK_HOLE
        Fastest lock-free most secure of all storage engines. Ignores data put in it, always returns null.
      • CACHE

        public static final PersistenceType CACHE
        Similar to IN_MEMORY but with different retention rules of data (that is, data is evicted under certain circumstances)
    • Field Detail

      • value

        public final int value
    • Method Detail

      • values

        public static PersistenceType[] 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 (PersistenceType c : PersistenceType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PersistenceType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getPersistenceTypeFromInt

        public static PersistenceType getPersistenceTypeFromInt​(int i)