Enum VolatileCounterConfigurationStorage
java.lang.Object
java.lang.Enum<VolatileCounterConfigurationStorage>
org.infinispan.counter.impl.manager.VolatileCounterConfigurationStorage
- All Implemented Interfaces:
Serializable,Comparable<VolatileCounterConfigurationStorage>,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
-
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 type with the specified name.static VolatileCounterConfigurationStorage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
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
-
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.
-