Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods
Called by both Client and Server.
void
Destroy all executors that are not in shutdown state
Be careful,The semantics of this method are getOrDefaultExecutor
void
The executor only used in bootstrap currently, we should call this method to release the resource
after the async export is done.
void
The executor only used in bootstrap currently, we should call this method to release the resource
after the async refer is done.
void
Modify some of the threadpool's properties according to the url, for example, coreSize, maxSize, ...
Method Details
createExecutorIfAbsent
Called by both Client and Server. TODO, consider separate these two parts.
When the Client or Server starts for the first time, generate a new threadpool according to the parameters specified.
Parameters:
url -
Returns:
getExecutor
Be careful,The semantics of this method are getOrDefaultExecutor
Parameters:
url -
Returns:
updateThreadpool
Modify some of the threadpool's properties according to the url, for example, coreSize, maxSize, ...
Parameters:
url -
executor -
shutdownServiceExportExecutor
void shutdownServiceExportExecutor ()
The executor only used in bootstrap currently, we should call this method to release the resource
after the async export is done.
shutdownServiceReferExecutor
void shutdownServiceReferExecutor ()
The executor only used in bootstrap currently, we should call this method to release the resource
after the async refer is done.
destroyAll
void destroyAll ()
Destroy all executors that are not in shutdown state
nextScheduledExecutor
Deprecated.
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 dedicate one.
Returns:
ScheduledExecutorService
nextExecutorExecutor
Deprecated.
Returns:
ExecutorService
getServiceDiscoveryAddressNotificationExecutor
Deprecated.
Returns:
ScheduledExecutorService
getRegistryNotificationExecutor
Deprecated.
Scheduled executor handle registry notification.
Returns:
ScheduledExecutorService
getSharedExecutor
Deprecated.
Get the default shared threadpool.
Returns:
ScheduledExecutorService
getSharedScheduledExecutor
Deprecated.
Get the shared schedule executor
Returns:
ScheduledExecutorService
getPoolRouterExecutor
Deprecated.
Returns:
ExecutorService
getConnectivityScheduledExecutor
Deprecated.
Scheduled executor handle connectivity check task
Returns:
ScheduledExecutorService
getCacheRefreshingScheduledExecutor
Deprecated.
Scheduler used to refresh file based caches from memory to disk.
Returns:
ScheduledExecutorService
getMappingRefreshingExecutor
Deprecated.
Executor used to run async mapping tasks
Returns:
ExecutorService
FrameworkExecutorRepository.getCacheRefreshingScheduledExecutor()instead