Interface ClusterConfigurationManager.InconsistentConfigurationListener

Enclosing interface:
ClusterConfigurationManager
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ClusterConfigurationManager.InconsistentConfigurationListener
A listener that is invoked, when the local member state in the local configuration is older compared to the received configuration. Normally, only a member can change its own state. However, if the state changes without its knowledge it means there was a request that force changed the configuration. In that case the listener can decide how to react - for example by shutting down the node or restarting all partitions with the new configuration.
  • Method Details

    • onInconsistentConfiguration

      void onInconsistentConfiguration(ClusterConfiguration newConfiguration, ClusterConfiguration oldConfiguration)
      Invoked when the local member state in the local configuration is old compared to the newer received configuration. Before invoking this listener, the local configuration will be updated to the newConfiguration.
      Parameters:
      newConfiguration - new configuration received
      oldConfiguration - the local configuration before receiving the new one