final class ClusterClientReceptionist extends Extension
Extension that starts ClusterReceptionist and accompanying akka.cluster.pubsub.DistributedPubSubMediator
with settings defined in config section akka.cluster.client.receptionist
.
The akka.cluster.pubsub.DistributedPubSubMediator is started by the akka.cluster.pubsub.DistributedPubSub extension.
- Source
- ClusterClient.scala
- Alphabetic
- By Inheritance
- ClusterClientReceptionist
- Extension
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ClusterClientReceptionist(system: ExtendedActorSystem)
Value Members
-
def
isTerminated: Boolean
Returns true if this member is not tagged with the role configured for the receptionist.
-
def
registerService(actor: ActorRef): Unit
Register an actor that should be reachable for the clients.
Register an actor that should be reachable for the clients. The clients can send messages to this actor with
Send
orSendToAll
using the path elements of theActorRef
, e.g."/user/myservice"
. -
def
registerSubscriber(topic: String, actor: ActorRef): Unit
Register an actor that should be reachable for the clients to a named topic.
Register an actor that should be reachable for the clients to a named topic. Several actors can be registered to the same topic name, and all will receive published messages. The client can publish messages to this topic with
Publish
. -
def
underlying: ActorRef
Returns the underlying receptionist actor, particularly so that its events can be observed via subscribe/unsubscribe.
-
def
unregisterService(actor: ActorRef): Unit
A registered actor will be automatically unregistered when terminated, but it can also be explicitly unregistered before termination.
-
def
unregisterSubscriber(topic: String, actor: ActorRef): Unit
A registered subscriber will be automatically unregistered when terminated, but it can also be explicitly unregistered before termination.