T
- the pipeline result typeR
- the pipeline request typeP
- the pipeline typepublic class SimplePipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>> extends Object implements PipelineExecutor<T,R,P>
Constructor and Description |
---|
SimplePipelineExecutor() |
Modifier and Type | Method and Description |
---|---|
SimplePipelineExecutor<T,R,P> |
execute()
Execute pipelines
|
List<Throwable> |
getExceptions()
Get the collected I/O exceptions that were thrown by the pipelines.
|
Collection<P> |
getPipelines()
Get the pipelines of this executor.
|
SimplePipelineExecutor<T,R,P> |
prepare()
Prepare the pipeline execution.
|
SimplePipelineExecutor<T,R,P> |
setConcurrency(int concurrency)
Set the concurrency of this pipeline setExecutor
|
SimplePipelineExecutor<T,R,P> |
setPipelineProvider(PipelineProvider<P> provider)
Set the provider of this pipeline setExecutor
|
void |
shutdown()
Shut down this pipeline executor.
|
SimplePipelineExecutor<T,R,P> |
waitFor()
Wait for all results of the executions.
|
public SimplePipelineExecutor()
public SimplePipelineExecutor<T,R,P> setConcurrency(int concurrency)
PipelineExecutor
setConcurrency
in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>
concurrency
- the concurrency, must be a positive integerpublic SimplePipelineExecutor<T,R,P> setPipelineProvider(PipelineProvider<P> provider)
PipelineExecutor
setPipelineProvider
in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>
provider
- the pipeline providerpublic SimplePipelineExecutor<T,R,P> prepare()
PipelineExecutor
prepare
in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>
public SimplePipelineExecutor<T,R,P> execute()
execute
in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>
public SimplePipelineExecutor<T,R,P> waitFor() throws InterruptedException, ExecutionException
waitFor
in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>
InterruptedException
ExecutionException
public void shutdown() throws IOException
PipelineExecutor
shutdown
in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>
IOException
public Collection<P> getPipelines()
getPipelines
in interface PipelineExecutor<T,R extends PipelineRequest,P extends Pipeline<T,R>>
public List<Throwable> getExceptions()
elasticsearch-river-jdbc