Package com.exoscale.sdk.model
Enum JsonSchemaRedis.PersistenceEnum
- java.lang.Object
-
- java.lang.Enum<JsonSchemaRedis.PersistenceEnum>
-
- com.exoscale.sdk.model.JsonSchemaRedis.PersistenceEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<JsonSchemaRedis.PersistenceEnum>
- Enclosing class:
- JsonSchemaRedis
public static enum JsonSchemaRedis.PersistenceEnum extends Enum<JsonSchemaRedis.PersistenceEnum>
When persistence is 'rdb', Redis 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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonSchemaRedis.PersistenceEnum
fromValue(String value)
String
getValue()
String
toString()
static JsonSchemaRedis.PersistenceEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static JsonSchemaRedis.PersistenceEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OFF
public static final JsonSchemaRedis.PersistenceEnum OFF
-
RDB
public static final JsonSchemaRedis.PersistenceEnum RDB
-
-
Method Detail
-
values
public static JsonSchemaRedis.PersistenceEnum[] 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 (JsonSchemaRedis.PersistenceEnum c : JsonSchemaRedis.PersistenceEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonSchemaRedis.PersistenceEnum 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 nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toString
in classEnum<JsonSchemaRedis.PersistenceEnum>
-
fromValue
public static JsonSchemaRedis.PersistenceEnum fromValue(String value)
-
-