Class RunWithConcurrency.Builder

  • Enclosing interface:
    RunWithConcurrency

    public static final class RunWithConcurrency.Builder
    extends org.neo4j.gds.core.concurrency.ImmutableRunWithConcurrency.Builder
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()
      Try to run all tasks for their side effects using at most ImmutableRunWithConcurrency.concurrency() threads at once.
      RunWithConcurrency.Builder tasks​(java.lang.Iterable<? extends java.lang.Runnable> tasks)
      Provides the tasks from an existing Iterable.
      RunWithConcurrency.Builder tasks​(java.util.stream.Stream<? extends java.lang.Runnable> tasks)
      Provides the tasks from a Stream of tasks by using BaseStream.iterator().
      RunWithConcurrency.Builder waitTime​(long waitTime, java.util.concurrent.TimeUnit waitTimeUnit)
      Sets the RunWithConcurrency.waitTime() together with its RunWithConcurrency.waitTimeUnit() Provides the tasks from an existing Iterable.
      • Methods inherited from class org.neo4j.gds.core.concurrency.ImmutableRunWithConcurrency.Builder

        build, clear, concurrency, executor, forceUsageOfExecutor, from, maxWaitRetries, mayInterruptIfRunning, tasks, terminationFlag, waitTime, waitTimeUnit
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait