Add a new predicated case to the message handling.
Add a new predicated case to the message handling.
type of message to match
type of message to match
a predicate that will be evaluated on the argument if the type matches
action to apply if the type matches and the predicate returns true
a new behavior with the specified handling appended
Add a new case to the message handling.
Add a new case to the message handling.
type of message to match
type of message to match
action to apply if the type matches
a new behavior with the specified handling appended
Add a new case to the message handling matching equal messages.
Add a new case to the message handling matching equal messages.
the message to compare to
action to apply when the message matches
a new behavior with the specified handling appended
Add a new case to the message handling without compile time type check.
Add a new case to the message handling without compile time type check.
Should normally not be used, but when matching on class with generic type
argument it can be useful, e.g. List.class
and (List<String> list) -> {...}
type of message to match
action to apply when the type matches
a new behavior with the specified handling appended
Add a new predicated case to the signal handling.
Add a new predicated case to the signal handling.
type of signal to match
type of signals to match
a predicate that will be evaluated on the argument if the type matches
action to apply if the type matches and the predicate returns true
a new behavior with the specified handling appended
Add a new case to the signal handling.
Add a new case to the signal handling.
type of signal to match
type of signal to match
action to apply if the type matches
a new behavior with the specified handling appended
Add a new case to the signal handling matching equal signals.
Add a new case to the signal handling matching equal signals.
the signal to compare to
action to apply when the message matches
a new behavior with the specified handling appended
Add a new case to the signal handling without compile time type check.
Add a new case to the signal handling without compile time type check.
Should normally not be used, but when matching on class with generic type
argument it can be useful, e.g. GenMsg.class
and (ActorContext
type of signal to match
action to apply when the type matches
a new behavior with the specified handling appended
Used for creating a Behavior by 'chaining' message and signal handlers.
When handling a message or signal, this Behavior will consider all handlers in the order they were added, looking for the first handler for which both the type and the (optional) predicate match.
the common superclass of all supported messages.