public interface MessageManager<ACCOUNT extends MessageAccount,SENDER extends MessageSender,RECEIVER extends MessageReceiver,MSG extends Message>
Modifier and Type | Method and Description |
---|---|
void |
addMessageReceiveProcessor(MessageReceiveProcessor<MSG> messageReceiveProcessor)
添加信息接收处理器
|
void |
addMessageSendProcessor(MessageSendProcessor<SENDER,RECEIVER,MSG> messageSendProcessor)
添加信息发送处理器
|
Collection<MSG> |
getMessages() |
void |
sendMessage(SENDER messageSender,
Collection<RECEIVER> messageReceivers,
MSG message) |
void |
setMessageAccount(ACCOUNT messageAccount) |
void |
setMessageReceiveProcessors(List<MessageReceiveProcessor<MSG>> messageReceiveProcessors)
设置信息接收处理器列表
|
void |
setMessageReceiveService(MessageReceiveService<ACCOUNT,MSG> messageReceiveService) |
void |
setMessageSendProcessors(List<MessageSendProcessor<SENDER,RECEIVER,MSG>> messageSendProcessors)
设置信息发送处理器列表
|
void |
setMessageSendService(MessageSendService<ACCOUNT,SENDER,RECEIVER,MSG> messageSendService) |
void setMessageAccount(ACCOUNT messageAccount)
void setMessageReceiveService(MessageReceiveService<ACCOUNT,MSG> messageReceiveService)
void setMessageSendService(MessageSendService<ACCOUNT,SENDER,RECEIVER,MSG> messageSendService)
void setMessageReceiveProcessors(List<MessageReceiveProcessor<MSG>> messageReceiveProcessors)
messageReceiveProcessors
- void addMessageReceiveProcessor(MessageReceiveProcessor<MSG> messageReceiveProcessor)
messageReceiveProcessor
- void setMessageSendProcessors(List<MessageSendProcessor<SENDER,RECEIVER,MSG>> messageSendProcessors)
messageSendProcessors
- void addMessageSendProcessor(MessageSendProcessor<SENDER,RECEIVER,MSG> messageSendProcessor)
messageSendProcessor
- Collection<MSG> getMessages() throws MessageException
MessageException
void sendMessage(SENDER messageSender, Collection<RECEIVER> messageReceivers, MSG message) throws MessageException
MessageException
Copyright © 2006–2018 TinyGroup. All rights reserved.