Class FrameworkExecutorRepository

java.lang.Object
org.apache.dubbo.common.threadpool.manager.FrameworkExecutorRepository
All Implemented Interfaces:
Disposable

public class FrameworkExecutorRepository extends Object implements Disposable
  • Field Details

  • Constructor Details

    • FrameworkExecutorRepository

      public FrameworkExecutorRepository()
  • Method Details

    • nextScheduledExecutor

      public ScheduledExecutorService nextScheduledExecutor()
      Returns a scheduler from the scheduler list, call this method whenever you need a scheduler for a cron job. If your cron cannot burden the possible schedule delay caused by sharing the same scheduler, please consider define a dedicated one.
      Returns:
      ScheduledExecutorService
    • nextExecutorExecutor

      public ExecutorService nextExecutorExecutor()
    • getRegistryNotificationExecutor

      public ScheduledExecutorService getRegistryNotificationExecutor()
      Scheduled executor handle registry notification.
      Returns:
      ScheduledExecutorService
    • getServiceDiscoveryAddressNotificationExecutor

      public ScheduledExecutorService getServiceDiscoveryAddressNotificationExecutor()
    • getMetadataRetryExecutor

      public ScheduledExecutorService getMetadataRetryExecutor()
    • getInternalServiceExecutor

      public ExecutorService getInternalServiceExecutor()
    • getSharedExecutor

      public ExecutorService getSharedExecutor()
      Get the default shared thread pool.
      Returns:
      ExecutorService
    • getSharedScheduledExecutor

      public ScheduledExecutorService getSharedScheduledExecutor()
      Get the shared schedule executor
      Returns:
      ScheduledExecutorService
    • getPoolRouterExecutor

      public ExecutorService getPoolRouterExecutor()
    • getConnectivityScheduledExecutor

      public ScheduledExecutorService getConnectivityScheduledExecutor()
      Scheduled executor handle connectivity check task
      Returns:
      ScheduledExecutorService
    • getCacheRefreshingScheduledExecutor

      public ScheduledExecutorService getCacheRefreshingScheduledExecutor()
      Scheduler used to refresh file based caches from memory to disk.
      Returns:
      ScheduledExecutorService
    • getMappingRefreshingExecutor

      public ExecutorService getMappingRefreshingExecutor()
      Executor used to run async mapping tasks
      Returns:
      ExecutorService
    • destroy

      public void destroy()
      Specified by:
      destroy in interface Disposable