@Internal public class DefaultExecutorServiceLoader extends Object implements PipelineExecutorServiceLoader
PipelineExecutorServiceLoader
. This implementation uses
Java service discovery to find the available executor factories
.Constructor and Description |
---|
DefaultExecutorServiceLoader() |
Modifier and Type | Method and Description |
---|---|
PipelineExecutorFactory |
getExecutorFactory(Configuration configuration)
Loads the
PipelineExecutorFactory which is compatible with the provided
configuration. |
Stream<String> |
getExecutorNames()
Loads and returns a stream of the names of all available executors.
|
public PipelineExecutorFactory getExecutorFactory(Configuration configuration)
PipelineExecutorServiceLoader
PipelineExecutorFactory
which is compatible with the provided
configuration. There can be at most one compatible factory among the available ones,
otherwise an exception will be thrown.getExecutorFactory
in interface PipelineExecutorServiceLoader
PipelineExecutorFactory
.public Stream<String> getExecutorNames()
PipelineExecutorServiceLoader
getExecutorNames
in interface PipelineExecutorServiceLoader
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.