Package com.mackenziehigh.cascade
Interface Cascade
public interface Cascade
Micro Actor Framework.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classPartial Implementation ofStage.static final classAMailboximplementation based on aArrayBlockingQueue.static final classAMailboximplementation based on aArrayDeque.static final classAMailboximplementation based on anArrayDeque, which behaves like a ring-buffer data-structure.static final classAMailboximplementation based on aConcurrentLinkedQueue.static final classAMailboximplementation based on aLinkedBlockingQueue.static final classAMailboximplementation based on aPriorityBlockingQueue.static interfaceA group ofActors with a common power supply. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic Cascade.StagenewStage()Create a new single-threaded stage.static Cascade.StagenewStage(int threadCount) Create a new multi-threaded stage.static Cascade.StagenewStage(int threadCount, boolean daemon) Create a new multi-threaded stage.static Cascade.StagenewStage(ExecutorService service) Create a new stage based on a givenExecutorService.
-
Method Details
-
newStage
Create a new single-threaded stage.The stage will use a non-daemon thread.
- Returns:
- the new stage.
-
newStage
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
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
Create a new stage based on a givenExecutorService.- Parameters:
service- will power the new stage.- Returns:
- the new stage.
-