T
- the result typeR
- the request typeP
- the pipeline typepublic interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>
Modifier and Type | Method and Description |
---|---|
PipelineExecutor<T,R,P> |
execute()
Execute the pipelines.
|
Collection<P> |
getPipelines()
Return pipelines
|
PipelineExecutor<T,R,P> |
prepare()
Prepare the pipeline execution.
|
PipelineExecutor<T,R,P> |
setConcurrency(int concurrency)
Set the concurrency of this pipeline setExecutor
|
PipelineExecutor<T,R,P> |
setPipelineProvider(PipelineProvider<P> provider)
Set the provider of this pipeline setExecutor
|
void |
shutdown()
Shut down this pipeline executor.
|
PipelineExecutor<T,R,P> |
waitFor()
Execute the pipelines.
|
PipelineExecutor<T,R,P> setConcurrency(int concurrency)
concurrency
- the concurrency, must be a positive integerPipelineExecutor<T,R,P> setPipelineProvider(PipelineProvider<P> provider)
provider
- the pipeline providerPipelineExecutor<T,R,P> prepare()
PipelineExecutor<T,R,P> execute()
PipelineExecutor<T,R,P> waitFor() throws InterruptedException, ExecutionException, IOException
InterruptedException
ExecutionException
IOException
void shutdown() throws InterruptedException, ExecutionException, IOException
Collection<P> getPipelines()
elasticsearch-river-jdbc