final class PubSub extends Extension
- Source
- PubSub.scala
- Alphabetic
- By Inheritance
- PubSub
- Extension
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new PubSub(system: ActorSystem[_])
Value Members
- def currentTopics: Set[String]
Scala API: return the current set of running topics
- def getCurrentTopics(): Set[String]
Java API: return the current set of running topics
- def topic[T](messageClass: Class[T], name: String, ttl: Duration): [Command[T]]
Scala API: Spawn an actor with the given topic name or share an existing one if it is already running.
Scala API: Spawn an actor with the given topic name or share an existing one if it is already running.
Note that Topic actors manually started will not be part of this registry.
- T
the type of messages the topic accepts for publishing and subscribing
- ttl
If the topic is idle this long, shut the actor down. All calls to
topic
for the same topic name should use the same ttl.
- def topic[T](messageClass: Class[T], name: String): [Command[T]]
Java API: Spawn an actor with the given topic name or share an existing one if it is already running.
Java API: Spawn an actor with the given topic name or share an existing one if it is already running.
Note that Topic actors manually started will not be part of this registry.
- messageClass
the type of messages the topic accepts for publishing and subscribing
- def topic[T](name: String, ttl: FiniteDuration)(implicit classTag: ClassTag[T]): [Command[T]]
Scala API: Spawn an actor with the given topic name or share an existing one if it is already running.
Scala API: Spawn an actor with the given topic name or share an existing one if it is already running.
Note that Topic actors manually started will not be part of this registry.
- T
the type of messages the topic accepts for publishing and subscribing
- ttl
If the topic is idle this long, shut the actor down. All calls to
topic
for the same topic name should use the same ttl.
- def topic[T](name: String)(implicit classTag: ClassTag[T]): [Command[T]]
Scala API: Spawn an actor with the given topic name or share an existing one if it is already running.
Scala API: Spawn an actor with the given topic name or share an existing one if it is already running.
Note that Topic actors manually started will not be part of this registry.
- T
the type of messages the topic accepts for publishing and subscribing