Enum Class RealmDefinition.RealmStatus
java.lang.Object
java.lang.Enum<RealmDefinition.RealmStatus>
org.apache.polaris.persistence.nosql.realms.api.RealmDefinition.RealmStatus
- All Implemented Interfaces:
Serializable,Comparable<RealmDefinition.RealmStatus>,Constable
- Enclosing interface:
RealmDefinition
Realms are assigned
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen a realm is fully set up, its state is "active".The initial state of a realm is "created", which means that the realm ID is reserved, but the realm is not yet usable.State used to indicate that the realm is being initialized.State used to indicate that the realm data is being imported."Purged" is the terminal state of every realm.AnINACTIVErealm can be put into "purging" state, which means that the realm's data is being purged from the persistence database. -
Method Summary
Modifier and TypeMethodDescriptionstatic RealmDefinition.RealmStatusReturns the enum constant of this class with the specified name.static RealmDefinition.RealmStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
The initial state of a realm is "created", which means that the realm ID is reserved, but the realm is not yet usable. This state can transition toLOADINGorINITIALIZINGor the realm can be directly deleted. -
LOADING
-
INITIALIZING
-
ACTIVE
When a realm is fully set up, its state is "active". This state can only transition toINACTIVE. -
INACTIVE
-
PURGING
AnINACTIVErealm can be put into "purging" state, which means that the realm's data is being purged from the persistence database. This is next to the final and terminal statePURGEDof a realm. Once all data of the realm has been purged, it must at least be set intoPURGEDstatus or be entirely removed. -
PURGED
"Purged" is the terminal state of every realm. A purged realm can be safely deleted. The difference between a "purged" realm and a non-existing (deleted) realm is that the ID of a purged realm cannot be (re)used.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-