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