Class WechatWorkRobotExceptionEventListener
java.lang.Object
tech.riemann.nif.starter.exception.event.ExceptionEventListener
tech.riemann.nif.starter.exception.event.WechatWorkRobotExceptionEventListener
- All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<ExceptionEvent>
- Author:
- Kerbores(kerbores@riemann.tech)
-
Nested Class Summary
Nested classes/interfaces inherited from class ExceptionEventListener
ExceptionEventListener.ExceptionWrapper -
Constructor Summary
ConstructorsConstructorDescriptionWechatWorkRobotExceptionEventListener(String webhook, String application, String ip, int timeout) 全参构造(@Builder 使用;notifier 为 final 带初始化器,由字段初始化器赋值,不参与构造) -
Method Summary
Methods inherited from class ExceptionEventListener
onApplicationEventMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
WechatWorkRobotExceptionEventListener
-
-
Method Details
-
init
@PostConstruct public void init() -
shutdown
@PreDestroy public void shutdown()H13: 应用关闭时优雅释放通知线程池 -
handleException
Description copied from class:ExceptionEventListener处理异常(抽象方法,子类必须实现)子类需要实现此方法来自定义异常处理逻辑
- Specified by:
handleExceptionin classExceptionEventListener- Parameters:
e-- See Also:
-