Package com.mackenziehigh.cascade
Interface Cascade.Stage.Actor.Context<I,O>
- Type Parameters:
I
- is the type of messages that the enclosing actor consumes.O
- is the type of messages that the enclosing actor produces.
- Enclosing interface:
- Cascade.Stage.Actor<I,
O>
public static interface Cascade.Stage.Actor.Context<I,O>
Script Execution Context.
-
Method Summary
Modifier and TypeMethodDescriptionactor()
Get the enclosing actor.boolean
Offer a message from the enclosing actor.boolean
Offer a message to the enclosing actor.default Cascade.Stage.Actor.Context<I,
O> Send a message from the enclosing actor.default Cascade.Stage.Actor.Context<I,
O> Send a message to the enclosing actor.
-
Method Details
-
actor
Cascade.Stage.Actor<I,O> actor()Get the enclosing actor.- Returns:
- the actor that owns this context.
-
offerTo
Offer a message to the enclosing actor.- Parameters:
message
- is the message to send to the actor.- Returns:
- true, if the message was successfully added to the underlying mailbox.
-
offerFrom
Offer a message from the enclosing actor.- Parameters:
message
- is the message to send from the actor.- Returns:
- true, if the message was sent to every connected output.
-
sendTo
Send a message to the enclosing actor.- Parameters:
message
- is the message to send to the actor.- Returns:
- this.
-
sendFrom
Send a message from the enclosing actor.- Parameters:
message
- is the message to send from the actor.- Returns:
- this.
-