ActorSystem is a container of actor and channel group instance, a actor or channel group instance must be create by a actor system instance, actor instance in different actor system instance can not send message directly.
only Notice message can send to a actor or channel group out side actor and channel group
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Create some new actor instance, and return the address of those actor.
Create some new actor instance, and return the address of those actor.
Type parameters
- A
-
type of actor
Value parameters
- factory
-
factory for create actor instance
- global
-
whether register this address to ioc manager of actor system
- num
-
number of actor instance to create
- qualifier
-
qualifier of ioc instance if ioc is true
Attributes
The immutable configuration for this actor system.
The immutable configuration for this actor system.
Attributes
Wrap a target address with interceptor actors. Interceptors are applied in order: first factory = outermost = first to process the request. Each factory receives the next Address to forward to.
Wrap a target address with interceptor actors. Interceptors are applied in order: first factory = outermost = first to process the request. Each factory receives the next Address to forward to.
val target = system.buildActor(new MyHandler())
val proxied = system.intercept(target, Seq(
next => new LoggingInterceptor(next),
next => new AuthInterceptor(next)
))
Type parameters
- M
-
the message type, must match the target actor's type
Value parameters
- factories
-
factory functions that create interceptors given the next address
- target
-
the target address to wrap
Attributes
- Returns
-
the outermost interceptor's address (use this as the public address)