public static class ConstrainedIndexerScheduler.ConstraintBuilder extends Object
Indexer
jobs.Constructor and Description |
---|
ConstraintBuilder() |
Modifier and Type | Method and Description |
---|---|
ConstrainedIndexerScheduler.ConstraintBuilder |
addConstraint(String fromIndexerId,
String toIndexerId)
Assigns a constraint where one indexer must run after another indexer.
|
ConstrainedIndexerScheduler.ConstraintBuilder |
addPriority(String indexerId,
int priority)
Assigns a priority to the indexer with the given ID.
|
IndexerScheduler.Factory |
createFactory() |
public ConstrainedIndexerScheduler.ConstraintBuilder addPriority(String indexerId, int priority)
addConstraint(String, String)
).indexerId
- The ID of an indexer. Must not be null.priority
- The priority assigned to this indexer. Lower numbers mean earlier scheduling.addConstraint(String, String)
public ConstrainedIndexerScheduler.ConstraintBuilder addConstraint(String fromIndexerId, String toIndexerId)
fromIndexerId
- The indexer that must complete first. Must not be null.toIndexerId
- The indexer that must start after the former completes. Must not be null.public IndexerScheduler.Factory createFactory()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.