Interface Cascade.Stage

All Known Implementing Classes:
Cascade.AbstractStage
Enclosing interface:
Cascade

public static interface Cascade.Stage
A group of Actors with a common power supply.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Actor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Asynchronously shutdown this stage, as soon as reasonably possible.
    Create a builder that can be used to add a new actor to this stage.
  • Method Details

    • newActor

      <I, O> Cascade.Stage.Actor.Builder<I,O> 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.