java.lang.Object
org.apache.shardingsphere.data.pipeline.core.execute.ExecuteEngine

public final class ExecuteEngine extends Object
Scaling executor engine.
  • Constructor Details

    • ExecuteEngine

      public ExecuteEngine()
  • Method Details

    • newCachedThreadInstance

      public static ExecuteEngine newCachedThreadInstance(String threadName)
      Create task execute engine instance with cached thread pool.
      Parameters:
      threadName - thread name
      Returns:
      task execute engine instance
    • newFixedThreadInstance

      public static ExecuteEngine newFixedThreadInstance(int threadNumber, String threadName)
      Create task execute engine instance with fixed thread pool.
      Parameters:
      threadNumber - thread number
      threadName - thread name
      Returns:
      task execute engine instance
    • submit

      public Future<?> submit(LifecycleExecutor lifecycleExecutor, ExecuteCallback executeCallback)
      Submit a LifecycleExecutor with callback ExecuteCallback to execute.
      Parameters:
      lifecycleExecutor - lifecycle executor
      executeCallback - execute callback
      Returns:
      execute future
    • submitAll

      public Future<?> submitAll(Collection<? extends LifecycleExecutor> lifecycleExecutors, ExecuteCallback executeCallback)
      Submit a collection of LifecycleExecutor with callback ExecuteCallback to execute.
      Parameters:
      lifecycleExecutors - lifecycle executor
      executeCallback - execute callback
      Returns:
      execute future of all