@SPI(value="default", scope=APPLICATION) public interface ExecutorRepository
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
createExecutorIfAbsent(URL url)
Called by both Client and Server.
|
void |
destroyAll()
Destroy all executors that are not in shutdown state
|
ScheduledExecutorService |
getConnectivityScheduledExecutor()
Scheduled executor handle connectivity check task
|
ExecutorService |
getExecutor(URL url) |
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 |
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, ...
|
ExecutorService createExecutorIfAbsent(URL url)
url - ExecutorService getExecutor(URL url)
void updateThreadpool(URL url, ExecutorService executor)
url - executor - ScheduledExecutorService nextScheduledExecutor()
ExecutorService nextExecutorExecutor()
ScheduledExecutorService getServiceExportExecutor()
void shutdownServiceExportExecutor()
ExecutorService getServiceReferExecutor()
void shutdownServiceReferExecutor()
ScheduledExecutorService getServiceDiscoveryAddressNotificationExecutor()
ScheduledExecutorService getMetadataRetryExecutor()
ScheduledExecutorService getRegistryNotificationExecutor()
ExecutorService getSharedExecutor()
ScheduledExecutorService getSharedScheduledExecutor()
ExecutorService getPoolRouterExecutor()
ScheduledExecutorService getConnectivityScheduledExecutor()
void destroyAll()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.