public class Pipeline<INPUT,OUTPUT> extends AbstractStage<INPUT,OUTPUT>
| 构造器和说明 |
|---|
Pipeline(ExecutorService helperExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
<INPUT,OUTPUT> |
addExecutorForStage(Stage<INPUT,OUTPUT> stage,
ExecutorService executorService) |
OUTPUT |
doProcess(INPUT input) |
void |
init(PipelineContext context)
Initialize the correlation (before/after relationship) of each Stage.
|
void |
process(INPUT input) |
void |
shutdown() |
void |
shutdown(boolean isHalt)
Close the current Pipeline.
|
setNextStagepublic Pipeline(ExecutorService helperExecutor)
public void init(PipelineContext context)
public <INPUT,OUTPUT> void addExecutorForStage(Stage<INPUT,OUTPUT> stage, ExecutorService executorService)
public void process(INPUT input)
public OUTPUT doProcess(INPUT input) throws StageException
doProcess 在类中 AbstractStage<INPUT,OUTPUT>StageExceptionpublic void shutdown()
public void shutdown(boolean isHalt)
isHalt: - true means the thread pool resources need to be closed, false means not to close.Copyright © 2025. All Rights Reserved.