Package com.mackenziehigh.cascade
Interface Cascade.Stage.Actor<I,O>
- Type Parameters:
I
- is the type of messages the actor will consume.O
- is the type of messages the actor will produce.
- All Known Implementing Classes:
Cascade.AbstractStage.DefaultActor
- Enclosing interface:
- Cascade.Stage
public static interface Cascade.Stage.Actor<I,O>
Actor.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Actor Builder.static interface
Actor Error Handler.static interface
Actor Behavior.static interface
Script Execution Context.static interface
Actor Error Handler.static interface
Actor Behavior.static interface
Actor Behavior.static interface
Input to an Actor.static interface
A queue-like (FIFO) data-structure that stores incoming messages.static interface
Output to an Actor. -
Method Summary
-
Method Details
-
stage
Cascade.Stage stage()Get theStage
that contains this actor.- Returns:
- the enclosing stage.
-
context
Cascade.Stage.Actor.Context<I,O> context()Get theContext
that is passed intoContextScript
s.- Returns:
- the context used when executing scripts.
-
input
Cascade.Stage.Actor.Input<I> input()Get theInput
that supplies messages to this actor.- Returns:
- the input to the actor.
-
output
Cascade.Stage.Actor.Output<O> output()Get theOutput
that receives messages from this actor.- Returns:
- the output from the actor.
-