Class SingletonActor$

java.lang.Object
org.apache.pekko.cluster.typed.SingletonActor$

public class SingletonActor$ extends Object
  • Field Details

    • MODULE$

      public static final SingletonActor$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • SingletonActor$

      public SingletonActor$()
  • Method Details

    • apply

      public <M> SingletonActor<M> apply(Behavior<M> behavior, String name)
      Parameters:
      name - Unique name for the singleton
      behavior - Behavior for the singleton
    • of

      public <M> SingletonActor<M> of(Behavior<M> behavior, String name)
      Java API

      Parameters:
      name - Unique name for the singleton
      behavior - Behavior for the singleton