类 DefaultExecutorRepository
- java.lang.Object
-
- org.apache.dubbo.common.threadpool.manager.DefaultExecutorRepository
-
- 所有已实现的接口:
ExecutorRepository
public class DefaultExecutorRepository extends Object implements ExecutorRepository
Consider implementingLicycleto enable executors shutdown when the process stops.
-
-
构造器概要
构造器 构造器 说明 DefaultExecutorRepository()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ExecutorServicecreateExecutorIfAbsent(URL url)Get called when the server or client instance initiating.voiddestroyAll()Destroy all executors that are not in shutdown stateExecutorServicegetExecutor(URL url)ScheduledExecutorServicegetServiceExporterExecutor()ExecutorServicegetSharedExecutor()Get the default shared threadpool.ScheduledExecutorServicenextScheduledExecutor()Returns a scheduler from the scheduler list, call this method whenever you need a scheduler for a cron job.voidupdateThreadpool(URL url, ExecutorService executor)Modify some of the threadpool's properties according to the url, for example, coreSize, maxSize, ...
-
-
-
方法详细资料
-
createExecutorIfAbsent
public ExecutorService createExecutorIfAbsent(URL url)
Get called when the server or client instance initiating.- 指定者:
createExecutorIfAbsent在接口中ExecutorRepository- 参数:
url-- 返回:
-
getExecutor
public ExecutorService getExecutor(URL url)
- 指定者:
getExecutor在接口中ExecutorRepository
-
updateThreadpool
public void updateThreadpool(URL url, ExecutorService executor)
从接口复制的说明:ExecutorRepositoryModify some of the threadpool's properties according to the url, for example, coreSize, maxSize, ...- 指定者:
updateThreadpool在接口中ExecutorRepository
-
nextScheduledExecutor
public ScheduledExecutorService nextScheduledExecutor()
从接口复制的说明:ExecutorRepositoryReturns 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 dedicate one.- 指定者:
nextScheduledExecutor在接口中ExecutorRepository- 返回:
-
getServiceExporterExecutor
public ScheduledExecutorService getServiceExporterExecutor()
- 指定者:
getServiceExporterExecutor在接口中ExecutorRepository
-
getSharedExecutor
public ExecutorService getSharedExecutor()
从接口复制的说明:ExecutorRepositoryGet the default shared threadpool.- 指定者:
getSharedExecutor在接口中ExecutorRepository- 返回:
-
destroyAll
public void destroyAll()
从接口复制的说明:ExecutorRepositoryDestroy all executors that are not in shutdown state- 指定者:
destroyAll在接口中ExecutorRepository
-
-