public class SpringEventHandler extends Object implements org.springframework.context.ApplicationListener<DomainEvent>
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
THREAD_KEY
异步多线程的KEY
可通过 System.setProperty(THREAD_KEY,"20") 调整线程数
|
| 构造器和说明 |
|---|
SpringEventHandler(List<IHandler> handlers) |
public void onApplicationEvent(DomainEvent domainEvent)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<DomainEvent>Copyright © 2022. All rights reserved.