public abstract class Receptionist
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Receptionist.AbstractServiceKey
Internal representation of
Receptionist.ServiceKey which is needed
in order to use a TypedMultiMap (using keys with a type parameter does not
work in Scala 2.x). |
static interface |
Receptionist.Command
The set of commands accepted by a Receptionist.
|
static class |
Receptionist.Find<T>
Query the Receptionist for a list of all Actors implementing the given
protocol.
|
static class |
Receptionist.Find$ |
static class |
Receptionist.Listing<T>
Current listing of all Actors that implement the protocol given by the
Receptionist.ServiceKey . |
static class |
Receptionist.Listing$ |
static class |
Receptionist.Register<T>
Associate the given
ActorRef with the given Receptionist.ServiceKey . |
static class |
Receptionist.Register$ |
static class |
Receptionist.Registered<T>
Confirmation that the given
ActorRef has been associated with the Receptionist.ServiceKey . |
static class |
Receptionist.Registered$ |
static interface |
Receptionist.ServiceKey<T>
A service key is an object that implements this trait for a given protocol
T, meaning that it signifies that the type T is the entry point into the
protocol spoken by that service (think of it as the set of first messages
that a client could send).
|
Constructor and Description |
---|
Receptionist() |
Modifier and Type | Method and Description |
---|---|
static Behavior<Receptionist.Command> |
behavior()
Initial behavior of a receptionist, used to create a new receptionist like in the following:
|
public static Behavior<Receptionist.Command> behavior()
val receptionist: ActorRef[Receptionist.Command] = ctx.spawn(Props(Receptionist.behavior), "receptionist")