abstract class ServiceKey[T] extends AbstractServiceKey
Ordering
- Alphabetic
- By Inheritance
Inherited
- ServiceKey
- AbstractServiceKey
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ServiceKey()
Type Members
- type Protocol = T
- Definition Classes
- ServiceKey → AbstractServiceKey
Abstract Value Members
- abstract def id: String
Concrete Value Members
- def asServiceKey: ServiceKey[T]
Type-safe down-cast
Type-safe down-cast
- Definition Classes
- ServiceKey → AbstractServiceKey
- object Listing
Scala API: Provides a type safe pattern match for listings.
Scala API: Provides a type safe pattern match for listings.
Using it for pattern match like this will return the reachable service instances:
case MyServiceKey.Listing(reachable) =>
In a non-clustered
ActorSystem
this will always be all registered instances for a service key. For a clustered environment services on nodes that have been observed unreachable are not among these (note that they could have become unreachable between this message being sent and the receiving actor processing it). - object Registered
Scala API: Provides a type safe pattern match for registration acks
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).
Not for user extension, see factories in companion object: ServiceKey#create and ServiceKey#apply