public final class ClusterClientReceptionist extends java.lang.Object implements Extension
ClusterReceptionist
and accompanying DistributedPubSubMediator
with settings defined in config section akka.cluster.client.receptionist
.
The DistributedPubSubMediator
is started by the DistributedPubSub
extension.Constructor and Description |
---|
ClusterClientReceptionist(ExtendedActorSystem system) |
Modifier and Type | Method and Description |
---|---|
static ClusterClientReceptionist |
createExtension(ExtendedActorSystem system) |
static ClusterClientReceptionist |
get(ActorSystem system) |
boolean |
isTerminated()
Returns true if this member is not tagged with the role configured for the
receptionist.
|
static ClusterClientReceptionist$ |
lookup() |
void |
registerService(ActorRef actor)
Register an actor that should be reachable for the clients.
|
void |
registerSubscriber(java.lang.String topic,
ActorRef actor)
Register an actor that should be reachable for the clients to a named topic.
|
ActorRef |
underlying()
Returns the underlying receptionist actor, particularly so that its
events can be observed via subscribe/unsubscribe.
|
void |
unregisterService(ActorRef actor)
A registered actor will be automatically unregistered when terminated,
but it can also be explicitly unregistered before termination.
|
void |
unregisterSubscriber(java.lang.String topic,
ActorRef actor)
A registered subscriber will be automatically unregistered when terminated,
but it can also be explicitly unregistered before termination.
|
public ClusterClientReceptionist(ExtendedActorSystem system)
public static ClusterClientReceptionist get(ActorSystem system)
public static ClusterClientReceptionist$ lookup()
public static ClusterClientReceptionist createExtension(ExtendedActorSystem system)
public boolean isTerminated()
public void registerService(ActorRef actor)
Send
or SendToAll
using
the path elements of the ActorRef
, e.g. "/user/myservice"
.actor
- (undocumented)public void unregisterService(ActorRef actor)
actor
- (undocumented)public void registerSubscriber(java.lang.String topic, ActorRef actor)
Publish
.topic
- (undocumented)actor
- (undocumented)public void unregisterSubscriber(java.lang.String topic, ActorRef actor)
topic
- (undocumented)actor
- (undocumented)public ActorRef underlying()