Interface Singleton

All Known Subinterfaces:
SingletonService, SingletonService<T>

public interface Singleton
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the current primary provider of the singleton.
    Returns the providers on which the given singleton is available.
    boolean
    Indicates whether this node is the primary provider of the singleton.
  • Method Details

    • isPrimary

      boolean isPrimary()
      Indicates whether this node is the primary provider of the singleton.
      Returns:
      true, if this node is the primary node, false if it is a backup node.
    • getPrimaryProvider

      Node getPrimaryProvider()
      Returns the current primary provider of the singleton.
      Returns:
      a cluster member
    • getProviders

      Set<Node> getProviders()
      Returns the providers on which the given singleton is available.
      Returns:
      a set of cluster members