Enum UnderStorageType

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

    @ThreadSafe
    public enum UnderStorageType
    extends java.lang.Enum<UnderStorageType>
    Specifies the type of data interaction with Alluxio's Under Storage. This is not applicable for reads. Only writing temporary data is suggested to use type NO_PERSIST where writing to Under Storage will be skipped and data may be lost when evicted from Alluxio storage.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ASYNC_PERSIST
      Persist data to the under storage asynchronously.
      NO_PERSIST
      Do not persist data to the under storage.
      SYNC_PERSIST
      Persist data to the under storage synchronously.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAsyncPersist()  
      boolean isSyncPersist()  
      static UnderStorageType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static UnderStorageType[] 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

      • SYNC_PERSIST

        public static final UnderStorageType SYNC_PERSIST
        Persist data to the under storage synchronously.
      • NO_PERSIST

        public static final UnderStorageType NO_PERSIST
        Do not persist data to the under storage.
      • ASYNC_PERSIST

        public static final UnderStorageType ASYNC_PERSIST
        Persist data to the under storage asynchronously.
    • Method Detail

      • values

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

        public static UnderStorageType 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
      • isSyncPersist

        public boolean isSyncPersist()
        Returns:
        whether the data should be persisted to the under storage synchronously
      • isAsyncPersist

        public boolean isAsyncPersist()
        Returns:
        whether the data should be persisted to the under storage asynchronously