Enum Class VolatileCounterConfigurationStorage
java.lang.Object
java.lang.Enum<VolatileCounterConfigurationStorage>
org.infinispan.counter.impl.manager.VolatileCounterConfigurationStorage
- All Implemented Interfaces:
Serializable,Comparable<VolatileCounterConfigurationStorage>,Constable,CounterConfigurationStorage
public enum VolatileCounterConfigurationStorage
extends Enum<VolatileCounterConfigurationStorage>
implements CounterConfigurationStorage
A volatile implementation of
CounterConfigurationStorage.
It throws an exception if it tries to store a Storage.PERSISTENT counter.
- Since:
- 9.2
- Author:
- Pedro Ruivo
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionloadAll()Invoked when starts, it returns all the persisted counter's.voidRemove a counter configurationvoidPersists the counter's configuration.voidvalidatePersistence(org.infinispan.counter.api.CounterConfiguration configuration) Validates if theCounterConfigurationhas a validStorage.Returns the enum constant of this class with the specified name.static VolatileCounterConfigurationStorage[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
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
-
loadAll
Description copied from interface:CounterConfigurationStorageInvoked when starts, it returns all the persisted counter's.- Specified by:
loadAllin interfaceCounterConfigurationStorage- Returns:
- all the persisted counter's name and configurations.
-
store
Description copied from interface:CounterConfigurationStoragePersists the counter's configuration.- Specified by:
storein interfaceCounterConfigurationStorage- Parameters:
name- the counter's name.configuration- the counter'sCounterConfiguration.
-
remove
Description copied from interface:CounterConfigurationStorageRemove a counter configuration- Specified by:
removein interfaceCounterConfigurationStorage- Parameters:
name- the counter's name.
-
validatePersistence
public void validatePersistence(org.infinispan.counter.api.CounterConfiguration configuration) Description copied from interface:CounterConfigurationStorageValidates if theCounterConfigurationhas a validStorage.It throws an exception if the implementation doesn't support one or more
Storagemodes.- Specified by:
validatePersistencein interfaceCounterConfigurationStorage- Parameters:
configuration- theCounterConfigurationto check.
-