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 interfaceActor Builder.static interfaceActor Error Handler.static interfaceActor Behavior.static interfaceScript Execution Context.static interfaceActor Error Handler.static interfaceActor Behavior.static interfaceActor Behavior.static interfaceInput to an Actor.static interfaceA queue-like (FIFO) data-structure that stores incoming messages.static interfaceOutput to an Actor. -
Method Summary
-
Method Details
-
stage
Cascade.Stage stage()Get theStagethat contains this actor.- Returns:
- the enclosing stage.
-
context
Cascade.Stage.Actor.Context<I,O> context()Get theContextthat is passed intoContextScripts.- Returns:
- the context used when executing scripts.
-
input
Cascade.Stage.Actor.Input<I> input()Get theInputthat supplies messages to this actor.- Returns:
- the input to the actor.
-
output
Cascade.Stage.Actor.Output<O> output()Get theOutputthat receives messages from this actor.- Returns:
- the output from the actor.
-