WideActor
The WideActor accepts messages from any other actor, and any message that is derived from Actor.Letter, also when they are defined or meant for other actors. In fact, this renders the typed aspect for typed actors a little useless. But it is mean to make the transition from non typed to typed actor design easier. Senders are tracked. If no name is given, an unique name is generated, but the actor is not indexed to be retrieved on the base of its name. Supply !# as name to define this a worker actor. Supply the (companion) object which contains the necessary type aliases as first parameter.
Attributes
- Graph
-
- Supertypes
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- StashDefs (hidden)
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Stash.type
Types
The upper bound for the collection of all accepted Senders.
The upper bound for the collection of all accepted Senders.
Attributes
The lower bound for the collection of all accepted Senders.
The lower bound for the collection of all accepted Senders.
Attributes
The super type for the state the actor can be in.
The super type for the state the actor can be in.
Attributes
Inherited types
Use this inside the actor to test for an anonymous sender
Value members
Concrete methods
Send a letter with the 'tell' operator. For compatibility with Akka.
Send a letter with the 'tell' operator. For compatibility with Akka.
Attributes
Send a letter, with the option to say who is sending it. Defaults to anonymous outside the context of an actor and to self inside an actor. Returns if the letter was accepted for delivery. Note, this does not mean it also processed. In the mean time the actor may stop.
Send a letter, with the option to say who is sending it. Defaults to anonymous outside the context of an actor and to self inside an actor. Returns if the letter was accepted for delivery. Note, this does not mean it also processed. In the mean time the actor may stop.
Attributes
Inherited methods
See the current activity state of this actor
See the current activity state of this actor
Attributes
- Inherited from:
- StatusActor (hidden)
Values contains if this actor is a worker based on its name prefix (# per default)
Values contains if this actor is a worker based on its name prefix (# per default)
Attributes
- Inherited from:
- NameActor
The maximum number of letters this actor accepts. Override to change its value.
The maximum number of letters this actor accepts. Override to change its value.
Attributes
- Inherited from:
- UserActor (hidden)
In the bare actor the path and name are equal.
Called after actor construction and guaranteed before the first message is processed. Use this to perform work to initialize the actor. Apart from a few instructions, work should not be done in the constructor itself since this effectively runs in the thread of the actor that constructed this actor. The method started() runs in its own thread. Override this with your own implementation.
Called after actor construction and guaranteed before the first message is processed. Use this to perform work to initialize the actor. Apart from a few instructions, work should not be done in the constructor itself since this effectively runs in the thread of the actor that constructed this actor. The method started() runs in its own thread. Override this with your own implementation.
Attributes
- Inherited from:
- ActorShare (hidden)
Stopping of an actor is organized in levels of severity. The lowest level (Direct) terminates directly, the highest level never terminates. The latter is the default. Levels can always be decreased, increase is only possible if the stop action was not yet initiated. Direct and Finish start immediately, and cannot be retracted.
Stopping of an actor is organized in levels of severity. The lowest level (Direct) terminates directly, the highest level never terminates. The latter is the default. Levels can always be decreased, increase is only possible if the stop action was not yet initiated. Direct and Finish start immediately, and cannot be retracted.
Attributes
- Inherited from:
- ControlActor (hidden)
Called before actor deactivation and guaranteed after the last message is processed. If there were any unprocessed messages in this actor at tear down, complete is false. These could be in the normal mailbox or on the stash, if present. Cause returns the last stop mode, so the cause of stopping this actor is known. In case of a actorContext shutdown this is NOT called, for this disruptively terminates all processing loops. It is however called when stop(...) is used, or when the actor is shutdown by a parent. The actor may still be around after this method is called, but will never accept new messages. The parent is still defined, when stopped() is executed (but may already stopped processing messages) but all the children will already be removed from the list, and their stopped() methods have already been called. Apart from the situation described above, you can rely on started() and stopped() to always come in pairs, even when no messages are processed at all.
Called before actor deactivation and guaranteed after the last message is processed. If there were any unprocessed messages in this actor at tear down, complete is false. These could be in the normal mailbox or on the stash, if present. Cause returns the last stop mode, so the cause of stopping this actor is known. In case of a actorContext shutdown this is NOT called, for this disruptively terminates all processing loops. It is however called when stop(...) is used, or when the actor is shutdown by a parent. The actor may still be around after this method is called, but will never accept new messages. The parent is still defined, when stopped() is executed (but may already stopped processing messages) but all the children will already be removed from the list, and their stopped() methods have already been called. Apart from the situation described above, you can rely on started() and stopped() to always come in pairs, even when no messages are processed at all.
Attributes
- Inherited from:
- ActorShare (hidden)
Inherited fields
The final name of this actor. It will be the name given, or a generated name for unnamed actors and workers
The final name of this actor. It will be the name given, or a generated name for unnamed actors and workers
Attributes
- Inherited from:
- ActorShare (hidden)
Givens
Givens
Extensions
Inherited extensions
Forward a message to one specific child on the basis of its name. Returns true if successful and false if that child is not present or does not accept the letter.
Forward a message to one specific child on the basis of its name. Returns true if successful and false if that child is not present or does not accept the letter.
Attributes
- Inherited from:
- ActorShare (hidden)
Forward a message to all children with indexed name, workers and auto named. Returns the number of children that accepted the letter. Does not include auto named children (children that were not given an explicit name) or workers.
Forward a message to all children with indexed name, workers and auto named. Returns the number of children that accepted the letter. Does not include auto named children (children that were not given an explicit name) or workers.
Attributes
- Inherited from:
- ActorShare (hidden)
Forward a message to children of which the name passes the test 'include'. Returns the number of children that accepted the letter. Does not include auto named children (children that were not given an explicit name) or workers.
Forward a message to children of which the name passes the test 'include'. Returns the number of children that accepted the letter. Does not include auto named children (children that were not given an explicit name) or workers.
Attributes
- Inherited from:
- ActorShare (hidden)
Forward a message to children per group: indexed and/or workers and/or children that were given an automatic name, i.e. children that were not given an explicit name. Returns the number of children that accepted the letter.
Forward a message to children per group: indexed and/or workers and/or children that were given an automatic name, i.e. children that were not given an explicit name. Returns the number of children that accepted the letter.
Attributes
- Inherited from:
- ActorShare (hidden)