类 SpringEventHandler
- java.lang.Object
-
- com.codingapi.springboot.framework.handler.SpringEventHandler
-
- 所有已实现的接口:
EventListener,org.springframework.context.ApplicationListener<DomainEvent>
public class SpringEventHandler extends Object implements org.springframework.context.ApplicationListener<DomainEvent>
handler订阅的Spring触发器,在异步的情况下可配置多线程。
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringTHREAD_KEY异步多线程的KEY 可通过 System.setProperty(THREAD_KEY,"20") 调整线程数
-
构造器概要
构造器 构造器 说明 SpringEventHandler(List<IHandler> handlers)
-
-
-
方法详细资料
-
onApplicationEvent
public void onApplicationEvent(DomainEvent domainEvent)
- 指定者:
onApplicationEvent在接口中org.springframework.context.ApplicationListener<DomainEvent>
-
-