Interface SingletonServiceBuilder<T>

Type Parameters:
T - the singleton service value type
All Superinterfaces:
Builder<T>, ServiceConfigurator, ServiceNameProvider

@Deprecated(forRemoval=true) public interface SingletonServiceBuilder<T> extends Builder<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Builds a singleton service.
Author:
Paul Ferraro
  • Method Details

    • requireQuorum

      SingletonServiceBuilder<T> 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 builder
    • 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 builder
    • 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 builder