final class SingletonActor[M] extends AnyRef
Ordering
- Alphabetic
- By Inheritance
Inherited
- SingletonActor
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- val behavior: Behavior[M]
- val name: String
- val props: Props
- val settings: Option[ClusterSingletonSettings]
- val stopMessage: Option[M]
-
def
withProps(props: Props): SingletonActor[M]
akka.actor.typed.Props of the singleton actor, such as dispatcher settings.
-
def
withSettings(settings: ClusterSingletonSettings): SingletonActor[M]
Additional settings, typically loaded from configuration.
-
def
withStopMessage(msg: M): SingletonActor[M]
Message sent to the singleton to tell it to stop, e.g.
Message sent to the singleton to tell it to stop, e.g. when being migrated. If this is not defined it will be stopped automatically. It can be useful to define a custom stop message if the singleton needs to perform some asynchronous cleanup or interactions before stopping.