Class HazelcastStateRepository

  • All Implemented Interfaces:
    StateRepository

    public class HazelcastStateRepository
    extends Object
    implements StateRepository

    A state repository which stores the feature state in a Hazelcast distributed map.

    The class provides a builder which can be used to configure the Hazelcast instance and map to be used:

     StateRepository repository = HazelcastStateRepository.newBuilder().mapName("my_map")
                    .config(hazelcastConfig).build();
     
    Author:
    Camiel de Vleeschauwer
    • Field Detail

      • hazelcastInstance

        protected final com.hazelcast.core.HazelcastInstance hazelcastInstance
      • hazelcastConfig

        protected final com.hazelcast.config.Config hazelcastConfig
      • hazelcastClientConfig

        protected final com.hazelcast.client.config.ClientConfig hazelcastClientConfig
      • mapName

        protected final String mapName
    • Constructor Detail

      • HazelcastStateRepository

        public HazelcastStateRepository​(com.hazelcast.config.Config hazelcastConfig,
                                        String mapName)
      • HazelcastStateRepository

        public HazelcastStateRepository​(com.hazelcast.client.config.ClientConfig hazelcastClientConfig,
                                        String mapName)
      • HazelcastStateRepository

        public HazelcastStateRepository​(com.hazelcast.core.HazelcastInstance hazelcastInstance,
                                        String mapName)