public abstract class AbstractDtpAdapter extends Object implements DtpAdapter, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,ExecutorWrapper> |
executors |
| 构造器和说明 |
|---|
AbstractDtpAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,ExecutorWrapper> |
getExecutorWrappers()
Get executor wrappers.
|
List<com.dtp.common.entity.ThreadPoolStats> |
getMultiPoolStats()
Get multi thread pool stats.
|
protected void |
initialize() |
void |
initNotifyItems(String poolName,
ExecutorWrapper executorWrapper) |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) |
void |
refresh(String name,
ExecutorWrapper executorWrapper,
List<com.dtp.common.entity.NotifyPlatform> platforms,
com.dtp.common.entity.TpExecutorProps props) |
void |
refresh(String name,
List<com.dtp.common.entity.TpExecutorProps> propsList,
List<com.dtp.common.entity.NotifyPlatform> platforms) |
void |
register(String poolName,
ThreadPoolExecutor threadPoolExecutor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsInvalidParams, getExecutorWrapper, refreshgetPoolStatsprotected final Map<String,ExecutorWrapper> executors
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>protected void initialize()
public void register(String poolName, ThreadPoolExecutor threadPoolExecutor)
public Map<String,ExecutorWrapper> getExecutorWrappers()
DtpAdaptergetExecutorWrappers 在接口中 DtpAdapterpublic List<com.dtp.common.entity.ThreadPoolStats> getMultiPoolStats()
getMultiPoolStats 在接口中 MetricsAwarepublic void initNotifyItems(String poolName, ExecutorWrapper executorWrapper)
public void refresh(String name, List<com.dtp.common.entity.TpExecutorProps> propsList, List<com.dtp.common.entity.NotifyPlatform> platforms)
public void refresh(String name, ExecutorWrapper executorWrapper, List<com.dtp.common.entity.NotifyPlatform> platforms, com.dtp.common.entity.TpExecutorProps props)
Copyright © 2023. All rights reserved.