Class AdaptedClusterSingletonImpl

  • All Implemented Interfaces:
    Extension

    public final class AdaptedClusterSingletonImpl
    extends ClusterSingleton
    INTERNAL API:
    • Constructor Detail

      • AdaptedClusterSingletonImpl

        public AdaptedClusterSingletonImpl​(ActorSystem<?> system)
    • Method Detail

      • init

        public <M> ActorRef<M> init​(SingletonActor<M> singleton)
        Description copied from class: ClusterSingleton
        Start if needed and provide a proxy to a named singleton

        If there already is a manager running for the given singletonName on this node, no additional manager is started. If there already is a proxy running for the given singletonName on this node, an ActorRef to that is returned.

        Specified by:
        init in class ClusterSingleton
        Parameters:
        singleton - (undocumented)
        Returns:
        A proxy actor that can be used to communicate with the singleton in the cluster