Class SendNoticeServiceImpl
-
- All Implemented Interfaces:
-
io.github.caijiang.common.notify.SendNoticeService
public class SendNoticeServiceImpl implements SendNoticeService
CJ
-
-
Constructor Summary
Constructors Constructor Description SendNoticeServiceImpl(NotifyConfiguration notifyConfiguration)
-
Method Summary
Modifier and Type Method Description final UnitbeforeClose()Unitsend(Notifiable notify)发送通知消息,发送消息并非核心业务逻辑,所以这部分操作会在异步中完成,不会汇报结果也不会丢出异常 UnitsendThrowable(Throwable throwable)检查异常,如果确认该异常跟Notifiable关联的,则发送它 -
-
Constructor Detail
-
SendNoticeServiceImpl
SendNoticeServiceImpl(NotifyConfiguration notifyConfiguration)
-
-
Method Detail
-
beforeClose
final Unit beforeClose()
-
send
Unit send(Notifiable notify)
发送通知消息,发送消息并非核心业务逻辑,所以这部分操作会在异步中完成,不会汇报结果也不会丢出异常
-
sendThrowable
Unit sendThrowable(Throwable throwable)
检查异常,如果确认该异常跟Notifiable关联的,则发送它
-
-
-
-