Package com.exoscale.sdk.model
Enum JsonSchemaValkey.PersistenceEnum
java.lang.Object
java.lang.Enum<JsonSchemaValkey.PersistenceEnum>
com.exoscale.sdk.model.JsonSchemaValkey.PersistenceEnum
- All Implemented Interfaces:
Serializable
,Comparable<JsonSchemaValkey.PersistenceEnum>
,java.lang.constant.Constable
- Enclosing class:
- JsonSchemaValkey
When persistence is 'rdb', Valkey does RDB dumps each 10 minutes if any key is changed. Also RDB dumps are done according to backup schedule for backup purposes. When persistence is 'off', no RDB dumps and backups are done, so data can be lost at any moment if service is restarted for any reason, or if service is powered off. Also service can't be forked.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()
toString()
Returns the enum constant of this type with the specified name.static JsonSchemaValkey.PersistenceEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OFF
-
RDB
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getValue
-
toString
- Overrides:
toString
in classEnum<JsonSchemaValkey.PersistenceEnum>
-
fromValue
-