Class ConstrainedIndexerScheduler.ConstraintBuilder

  • Enclosing class:
    ConstrainedIndexerScheduler

    public static class ConstrainedIndexerScheduler.ConstraintBuilder
    extends Object
    Builder for defining priorities and dependencies of Indexer jobs.
    • Constructor Detail

      • ConstraintBuilder

        public ConstraintBuilder()
    • Method Detail

      • addConstraint

        public ConstrainedIndexerScheduler.ConstraintBuilder addConstraint​(String fromIndexerId,
                                                                           String toIndexerId)
        Assigns a constraint where one indexer must run after another indexer.
        Parameters:
        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.
        Returns:
        This builder. Never null.
      • createFactory

        public org.uberfire.ext.metadata.engine.IndexerScheduler.Factory createFactory()