Interface SingletonServiceConfigurator

All Superinterfaces:
ImmutableSingletonServiceConfigurator, ServiceConfigurator, ServiceNameProvider

@Deprecated(forRemoval=true) public interface SingletonServiceConfigurator extends ImmutableSingletonServiceConfigurator
Deprecated, for removal: This API element is subject to removal in a future version.
Superseded by SingletonServiceTarget.
Extension of ImmutableSingletonServiceConfigurator for customizing singleton service behavior.
Author:
Paul Ferraro
  • Method Details

    • requireQuorum

      SingletonServiceConfigurator requireQuorum(int quorum)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Defines the minimum number of members required before a singleton election will take place.
      Parameters:
      quorum - the quorum required for electing a primary singleton provider
      Returns:
      a reference to this configurator
    • electionPolicy

      Deprecated, for removal: This API element is subject to removal in a future version.
      Defines the policy for electing a primary singleton provider.
      Parameters:
      policy - an election policy
      Returns:
      a reference to this configurator
    • electionListener

      Deprecated, for removal: This API element is subject to removal in a future version.
      Defines a listener to trigger following the election of a primary singleton provider.
      Parameters:
      listener - an election listener
      Returns:
      a reference to this configurator