Package io.quarkus.scheduler.deployment
Class DiscoveredImplementationsBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.scheduler.deployment.DiscoveredImplementationsBuildItem
public final class DiscoveredImplementationsBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
This build item holds all discovered
Scheduler implementations sorted by priority. Higher
priority goes first.-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveredImplementationsBuildItem(String autoImplementation, Set<String> implementations, boolean useCompositeScheduler) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisAutoImplementation(String implementation) booleanA composite scheduler is used if multiple scheduler implementations are found andSchedulerConfig.useCompositeScheduler()is set totrue.
-
Constructor Details
-
DiscoveredImplementationsBuildItem
-
-
Method Details
-
getAutoImplementation
- Returns:
- the implementation with highest priority
-
getImplementations
-
isCompositeSchedulerUsed
public boolean isCompositeSchedulerUsed()A composite scheduler is used if multiple scheduler implementations are found andSchedulerConfig.useCompositeScheduler()is set totrue.The extension will add:
- the
Constituentmarker qualifier, - the
Identifierqualifier with the corresponding implementation value.
- Returns:
trueif a composite scheduler is used- See Also:
- the
-
isAutoImplementation
-