object DistributedPubSubMediator
- Source
- DistributedPubSubMediator.scala
- Alphabetic
- By Inheritance
- DistributedPubSubMediator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed abstract class Count extends AnyRef
- final case class CountSubscribers(topic: String) extends Product with Serializable
- final case class CurrentTopics(topics: Set[String]) extends Product with Serializable
Reply to
GetTopics
.Reply to
GetTopics
.- Annotations
- @SerialVersionUID()
- sealed abstract class GetTopics extends AnyRef
- final case class Publish(topic: String, msg: Any, sendOneMessageToEachGroup: Boolean) extends with with Product with Serializable
- Annotations
- @SerialVersionUID()
- final case class Put(ref: ActorRef) extends Product with Serializable
- Annotations
- @SerialVersionUID()
- final case class Remove(path: String) extends Product with Serializable
- Annotations
- @SerialVersionUID()
- final case class Send(path: String, msg: Any, localAffinity: Boolean) extends with with Product with Serializable
- Annotations
- @SerialVersionUID()
- final case class SendToAll(path: String, msg: Any, allButSelf: Boolean = false) extends with with Product with Serializable
- Annotations
- @SerialVersionUID()
- final case class Subscribe(topic: String, group: Option[String], ref: ActorRef) extends Product with Serializable
- Annotations
- @SerialVersionUID()
- final case class SubscribeAck(subscribe: Subscribe) extends with Product with Serializable
- Annotations
- @SerialVersionUID()
- final case class Unsubscribe(topic: String, group: Option[String], ref: ActorRef) extends Product with Serializable
- Annotations
- @SerialVersionUID()
- final case class UnsubscribeAck(unsubscribe: Unsubscribe) extends Product with Serializable
- Annotations
- @SerialVersionUID()
Value Members
- def getCountInstance: Count
Java API: Send this message to the mediator and it will reply with an
Integer
of the number of subscribers. - def getTopicsInstance: GetTopics
Java API: Send this message to the mediator and it will reply with DistributedPubSubMediator.CurrentTopics containing the names of the (currently known) registered topic names.
- def props(settings: DistributedPubSubSettings): Props
Scala API: Factory method for
DistributedPubSubMediator
akka.actor.Props. - case object Count extends with Product with Serializable
Scala API: Send this message to the mediator and it will reply with an
Int
of the number of subscribers.Scala API: Send this message to the mediator and it will reply with an
Int
of the number of subscribers. Only for testing purposes, to poll/await replication. - case object GetTopics extends with Product with Serializable
Send this message to the mediator and it will reply with CurrentTopics containing the names of the (currently known) registered topic names.
Send this message to the mediator and it will reply with CurrentTopics containing the names of the (currently known) registered topic names.
- Annotations
- @SerialVersionUID()
- object Publish extends Serializable
- object Subscribe extends Serializable
- object Unsubscribe extends Serializable