public class DefaultExecutorRepository extends Object implements ExecutorRepository, ExtensionAccessorAware
Lifecycle to enable executors shutdown when the process stops.| 构造器和说明 |
|---|
DefaultExecutorRepository(ApplicationModel applicationModel) |
| 限定符和类型 | 方法和说明 |
|---|---|
ExecutorService |
createExecutorIfAbsent(URL url)
Get called when the server or client instance initiating.
|
void |
destroyAll()
Destroy all executors that are not in shutdown state
|
ScheduledExecutorService |
getCacheRefreshingScheduledExecutor()
Scheduler used to refresh file based caches from memory to disk.
|
ScheduledExecutorService |
getConnectivityScheduledExecutor()
Scheduled executor handle connectivity check task
|
ExecutorService |
getExecutor(URL url)
Be careful,The semantics of this method are getOrDefaultExecutor
|
ExecutorSupport |
getExecutorSupport(URL url) |
ExecutorService |
getMappingRefreshingExecutor()
Executor used to run async mapping tasks
|
ScheduledExecutorService |
getMetadataRetryExecutor() |
ExecutorService |
getPoolRouterExecutor() |
ScheduledExecutorService |
getRegistryNotificationExecutor()
Scheduled executor handle registry notification.
|
ScheduledExecutorService |
getServiceDiscoveryAddressNotificationExecutor() |
ScheduledExecutorService |
getServiceExportExecutor() |
ExecutorService |
getServiceReferExecutor() |
ExecutorService |
getSharedExecutor()
Get the default shared threadpool.
|
ScheduledExecutorService |
getSharedScheduledExecutor()
Get the shared schedule executor
|
ExecutorService |
nextExecutorExecutor() |
ScheduledExecutorService |
nextScheduledExecutor()
Returns a scheduler from the scheduler list, call this method whenever you need a scheduler for a cron job.
|
void |
setExtensionAccessor(ExtensionAccessor extensionAccessor) |
void |
shutdownServiceExportExecutor()
The executor only used in bootstrap currently, we should call this method to release the resource
after the async export is done.
|
void |
shutdownServiceReferExecutor()
The executor only used in bootstrap currently, we should call this method to release the resource
after the async refer is done.
|
void |
updateThreadpool(URL url,
ExecutorService executor)
Modify some of the threadpool's properties according to the url, for example, coreSize, maxSize, ...
|
getInstance, getModepublic DefaultExecutorRepository(ApplicationModel applicationModel)
public ExecutorService createExecutorIfAbsent(URL url)
createExecutorIfAbsent 在接口中 ExecutorRepositoryurl - public ExecutorService getExecutor(URL url)
ExecutorRepositorygetExecutor 在接口中 ExecutorRepositorypublic void updateThreadpool(URL url, ExecutorService executor)
ExecutorRepositoryupdateThreadpool 在接口中 ExecutorRepositorypublic ScheduledExecutorService getServiceExportExecutor()
getServiceExportExecutor 在接口中 ExecutorRepositorypublic void shutdownServiceExportExecutor()
ExecutorRepositorypublic ExecutorService getServiceReferExecutor()
getServiceReferExecutor 在接口中 ExecutorRepositorypublic void shutdownServiceReferExecutor()
ExecutorRepositorypublic void destroyAll()
ExecutorRepositorydestroyAll 在接口中 ExecutorRepositorypublic void setExtensionAccessor(ExtensionAccessor extensionAccessor)
setExtensionAccessor 在接口中 ExtensionAccessorAwarepublic ScheduledExecutorService nextScheduledExecutor()
ExecutorRepositorynextScheduledExecutor 在接口中 ExecutorRepositorypublic ExecutorService nextExecutorExecutor()
nextExecutorExecutor 在接口中 ExecutorRepositorypublic ScheduledExecutorService getServiceDiscoveryAddressNotificationExecutor()
getServiceDiscoveryAddressNotificationExecutor 在接口中 ExecutorRepositorypublic ScheduledExecutorService getMetadataRetryExecutor()
getMetadataRetryExecutor 在接口中 ExecutorRepositorypublic ScheduledExecutorService getRegistryNotificationExecutor()
ExecutorRepositorygetRegistryNotificationExecutor 在接口中 ExecutorRepositorypublic ExecutorService getSharedExecutor()
ExecutorRepositorygetSharedExecutor 在接口中 ExecutorRepositorypublic ScheduledExecutorService getSharedScheduledExecutor()
ExecutorRepositorygetSharedScheduledExecutor 在接口中 ExecutorRepositorypublic ExecutorService getPoolRouterExecutor()
getPoolRouterExecutor 在接口中 ExecutorRepositorypublic ScheduledExecutorService getConnectivityScheduledExecutor()
ExecutorRepositorygetConnectivityScheduledExecutor 在接口中 ExecutorRepositorypublic ScheduledExecutorService getCacheRefreshingScheduledExecutor()
ExecutorRepositorygetCacheRefreshingScheduledExecutor 在接口中 ExecutorRepositorypublic ExecutorService getMappingRefreshingExecutor()
ExecutorRepositorygetMappingRefreshingExecutor 在接口中 ExecutorRepositorypublic ExecutorSupport getExecutorSupport(URL url)
getExecutorSupport 在接口中 ExecutorRepositoryCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.