Enum VolatileCounterConfigurationStorage

    • Method Detail

      • values

        public static VolatileCounterConfigurationStorage[] 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 (VolatileCounterConfigurationStorage c : VolatileCounterConfigurationStorage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static VolatileCounterConfigurationStorage 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 name
        NullPointerException - if the argument is null
      • store

        public void store​(String name,
                          org.infinispan.counter.api.CounterConfiguration configuration)
        Description copied from interface: CounterConfigurationStorage
        Persists the counter's configuration.
        Specified by:
        store in interface CounterConfigurationStorage
        Parameters:
        name - the counter's name.
        configuration - the counter's CounterConfiguration.
      • validatePersistence

        public void validatePersistence​(org.infinispan.counter.api.CounterConfiguration configuration)
        Description copied from interface: CounterConfigurationStorage
        Validates if the CounterConfiguration has a valid Storage.

        It throws an exception if the implementation doesn't support one or more Storage modes.

        Specified by:
        validatePersistence in interface CounterConfigurationStorage
        Parameters:
        configuration - the CounterConfiguration to check.