Package com.mackenziehigh.cascade
Interface Cascade.Stage
- All Known Implementing Classes:
Cascade.AbstractStage
- Enclosing interface:
- Cascade
public static interface Cascade.Stage
A group of
Actor
s with a common power supply.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Asynchronously shutdown this stage, as soon as reasonably possible.<I,
O> Cascade.Stage.Actor.Builder<I, O> newActor()
Create a builder that can be used to add a new actor to this stage.
-
Method Details
-
newActor
Create a builder that can be used to add a new actor to this stage.This method returns a builder, rather than an actor itself, so that further configuration of the actor can be performed, if the calling code so desires.
- Type Parameters:
I
- is the type of messages that the actor will consume.O
- is the type of messages that the actor will produce.- Returns:
- the new builder.
-
close
void close()Asynchronously shutdown this stage, as soon as reasonably possible.Subsequent invocations of this method are idempotent.
-