Interface Cascade


public interface Cascade
Micro Actor Framework.
  • Method Details

    • newStage

      static Cascade.Stage newStage()
      Create a new single-threaded stage.

      The stage will use a non-daemon thread.

      Returns:
      the new stage.
    • newStage

      static Cascade.Stage newStage(int threadCount)
      Create a new multi-threaded stage.

      The stage will use non-daemon threads.

      Parameters:
      threadCount - is the number of worker threads that the stage will use.
      Returns:
      the new stage.
    • newStage

      static Cascade.Stage newStage(int threadCount, boolean daemon)
      Create a new multi-threaded stage.
      Parameters:
      threadCount - is the number of worker threads that the stage will use.
      daemon - is true, if the threads will be daemon threads.
      Returns:
      the new stage.
    • newStage

      static Cascade.Stage newStage(ExecutorService service)
      Create a new stage based on a given ExecutorService.
      Parameters:
      service - will power the new stage.
      Returns:
      the new stage.