Package apoc

Class Pools

java.lang.Object
org.neo4j.kernel.lifecycle.LifecycleAdapter
apoc.Pools
All Implemented Interfaces:
org.neo4j.kernel.lifecycle.Lifecycle

public class Pools extends org.neo4j.kernel.lifecycle.LifecycleAdapter
  • Field Details

    • DEFAULT_SCHEDULED_THREADS

      public static final int DEFAULT_SCHEDULED_THREADS
    • DEFAULT_POOL_THREADS

      public static final int DEFAULT_POOL_THREADS
  • Constructor Details

    • Pools

      public Pools(org.neo4j.logging.internal.LogService log, org.neo4j.kernel.api.procedure.GlobalProcedures globalProceduresRegistry, ApocConfig apocConfig)
  • Method Details

    • init

      public void init()
      Specified by:
      init in interface org.neo4j.kernel.lifecycle.Lifecycle
      Overrides:
      init in class org.neo4j.kernel.lifecycle.LifecycleAdapter
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface org.neo4j.kernel.lifecycle.Lifecycle
      Overrides:
      shutdown in class org.neo4j.kernel.lifecycle.LifecycleAdapter
    • getSingleExecutorService

      public ExecutorService getSingleExecutorService()
    • getScheduledExecutorService

      public ScheduledExecutorService getScheduledExecutorService()
    • getDefaultExecutorService

      public ExecutorService getDefaultExecutorService()
    • getJobList

      public Map<PeriodicUtils.JobInfo,Future> getJobList()
    • processBatch

      public <T> Future<Void> processBatch(List<T> batch, org.neo4j.graphdb.GraphDatabaseService db, BiConsumer<org.neo4j.graphdb.Transaction,T> action)
    • force

      public static <T> T force(Future<T> future) throws ExecutionException
      Throws:
      ExecutionException