Class ClusterClientReceptionist
Extension that starts ClusterReceptionist and accompanying DistributedPubSubMediator with settings defined in config section "akka.cluster.client.receptionist". The DistributedPubSubMediator is started by the DistributedPubSub extension.
Implements
Inherited Members
Namespace: Akka.Cluster.Tools.Client
Assembly: Akka.Cluster.Tools.dll
Syntax
public sealed class ClusterClientReceptionist : IExtension
Constructors
| Improve this Doc View SourceClusterClientReceptionist(ExtendedActorSystem)
TBD
Declaration
public ClusterClientReceptionist(ExtendedActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ExtendedActorSystem | system | TBD |
Properties
| Improve this Doc View SourceIsTerminated
Returns true if this member is not tagged with the role configured for the receptionist.
Declaration
public bool IsTerminated { get; }
Property Value
Type | Description |
---|---|
Boolean |
Underlying
Returns the underlying receptionist actor, particularly so that its events can be observed via subscribe/unsubscribe.
Declaration
public IActorRef Underlying { get; }
Property Value
Type | Description |
---|---|
IActorRef |
Methods
| Improve this Doc View SourceDefaultConfig()
TBD
Declaration
public static Config DefaultConfig()
Returns
Type | Description |
---|---|
Config | TBD |
Get(ActorSystem)
TBD
Declaration
public static ClusterClientReceptionist Get(ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | TBD |
Returns
Type | Description |
---|---|
ClusterClientReceptionist | TBD |
RegisterService(IActorRef)
Register an actor that should be reachable for the clients. The clients can send messages to this actor with Send or SendToAll using the path elements of the IActorRef, e.g. "/user/myservice".
Declaration
public void RegisterService(IActorRef actorRef)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actorRef | TBD |
RegisterSubscriber(String, IActorRef)
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.
Declaration
public void RegisterSubscriber(string topic, IActorRef actorRef)
Parameters
Type | Name | Description |
---|---|---|
String | topic | TBD |
IActorRef | actorRef | TBD |
UnregisterService(IActorRef)
A registered actor will be automatically unregistered when terminated, but it can also be explicitly unregistered before termination.
Declaration
public void UnregisterService(IActorRef actorRef)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actorRef | TBD |
UnregisterSubscriber(String, IActorRef)
A registered subscriber will be automatically unregistered when terminated, but it can also be explicitly unregistered before termination.
Declaration
public void UnregisterSubscriber(string topic, IActorRef actorRef)
Parameters
Type | Name | Description |
---|---|---|
String | topic | TBD |
IActorRef | actorRef | TBD |