object GuildRouter
- Source
- GuildRouter.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- GuildRouter
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class Broadcast[Inner](msg: Inner) extends Command[Nothing, Inner] with Product with Serializable
Send a command to all guild actors that currently exists.
- sealed trait Command[+Event, +Inner] extends AnyRef
- case class EventMessage[Event](a: Event) extends Command[Event, Nothing] with Product with Serializable
- case class GetGuildActor[Inner](guildId: GuildId, replyTo: ActorRef[GetGuildActorReply[Inner]]) extends Command[Nothing, Inner] with Product with Serializable
Send to the guild dispatcher to get the actor for that guild
Send to the guild dispatcher to get the actor for that guild
- guildId
The guildId to get the actor for
- case class GetGuildActorReply[Inner](guildActor: ActorRef[Inner]) extends Product with Serializable
Sent as a response to GetGuildActor
Sent as a response to GetGuildActor
- guildActor
The actor for the specified guild
- case class GuildActorCreated[Inner](actor: ActorRef[Inner], guildId: GuildId) extends Product with Serializable
- case class OnShutdownSendMsg[Inner](msg: Inner) extends ShutdownBehavior[Inner] with Product with Serializable
- case class SendToGuildActor[Inner](guildId: GuildId, msg: Inner) extends Command[Nothing, Inner] with Product with Serializable
Send a message to a guild actor that this router manages.
Send a message to a guild actor that this router manages.
- guildId
The guildId of the actor to send to.
- msg
The message to send.
- sealed trait ShutdownBehavior[+Inner] extends AnyRef
Value Members
- def partitioner[Inner](replyTo: Option[ActorRef[GuildActorCreated[Inner]]], behavior: (GuildId) => Behavior[Inner], notGuildHandler: Option[ActorRef[Inner]], shutdownBehavior: ShutdownBehavior[Inner]): Behavior[Command[Nothing, Inner]]
- case object OnShutdownStop extends ShutdownBehavior[Nothing] with Product with Serializable
- case object Shutdown extends Command[Nothing, Nothing] with Product with Serializable