public abstract class AbstractDtpAdapter extends Object implements DtpAdapter, org.springframework.context.event.GenericApplicationListener
| 限定符和类型 | 字段和说明 |
|---|---|
protected Map<String,ExecutorWrapper> |
executors |
| 构造器和说明 |
|---|
AbstractDtpAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
doRefresh(ExecutorWrapper executorWrapper,
List<com.dtp.common.entity.NotifyPlatform> platforms,
com.dtp.common.entity.TpExecutorProps props) |
Map<String,ExecutorWrapper> |
getExecutorWrappers()
Get executor wrappers.
|
List<com.dtp.common.entity.ThreadPoolStats> |
getMultiPoolStats()
Get multi thread pool stats.
|
protected com.dtp.common.entity.TpMainFields |
getTpMainFields(ExecutorWrapper executorWrapper,
com.dtp.common.entity.TpExecutorProps props) |
protected void |
initialize() |
void |
initNotifyItems(String poolName,
ExecutorWrapper executorWrapper) |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent 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) |
boolean |
supportsEventType(org.springframework.core.ResolvableType resolvableType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontainsInvalidParams, getExecutorWrapper, refreshgetPoolStatsprotected final Map<String,ExecutorWrapper> executors
public boolean supportsEventType(org.springframework.core.ResolvableType resolvableType)
supportsEventType 在接口中 org.springframework.context.event.GenericApplicationListenerpublic void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>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)
protected com.dtp.common.entity.TpMainFields getTpMainFields(ExecutorWrapper executorWrapper, com.dtp.common.entity.TpExecutorProps props)
protected void doRefresh(ExecutorWrapper executorWrapper, List<com.dtp.common.entity.NotifyPlatform> platforms, com.dtp.common.entity.TpExecutorProps props)
Copyright © 2023. All rights reserved.