Class HazelcastStateRepository

java.lang.Object
org.togglz.hazelcast.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 Details

    • 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 Details

    • 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)
  • Method Details