@Service
public class MessageBusAsyncService
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| 限定符和类型 | 类和说明 |
|---|---|
protected class |
MessageBusAsyncService.AsyncPubSubProcessListener
事件监控处理器
|
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
ASYNC_MESSAGE_EVENT_BUS
EventBus Name:"ASYNC_MESSAGE_EVENT_BUS"
|
| 构造器和说明 |
|---|
MessageBusAsyncService() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterPropertiesSet() |
void |
destroy()
Invoked by the containing
BeanFactory on destruction of a bean. |
void |
send(PubContext pubContext)
发送消息
|
void |
sendMessage(java.lang.String code,
java.util.Map<java.lang.String,java.lang.String> tagkvs,
java.lang.String content) |
public static final java.lang.String ASYNC_MESSAGE_EVENT_BUS
public void destroy()
throws java.lang.Exception
BeanFactory on destruction of a bean.destroy 在接口中 org.springframework.beans.factory.DisposableBeanjava.lang.Exception - in case of shutdown errors. Exceptions will get logged
but not rethrown to allow other beans to release their resources as well.public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBeanjava.lang.Exception@Async(value="threadPoolExecutor") public void send(PubContext pubContext)
pubContext - 上下文public void sendMessage(java.lang.String code,
java.util.Map<java.lang.String,java.lang.String> tagkvs,
java.lang.String content)