public class MessageManagerDefault<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message> extends Object implements MessageManager<Account,Sender,Receiver,Msg>
Constructor and Description |
---|
MessageManagerDefault() |
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) |
public void setMessageAccount(Account messageAccount)
setMessageAccount
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
public void setMessageReceiveService(MessageReceiveService<Account,Msg> messageReceiveService)
setMessageReceiveService
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
public void setMessageSendService(MessageSendService<Account,Sender,Receiver,Msg> messageSendService)
setMessageSendService
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
public void setMessageReceiveProcessors(List<MessageReceiveProcessor<Msg>> messageReceiveProcessors)
MessageManager
setMessageReceiveProcessors
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
public void addMessageReceiveProcessor(MessageReceiveProcessor<Msg> messageReceiveProcessor)
MessageManager
addMessageReceiveProcessor
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
public void setMessageSendProcessors(List<MessageSendProcessor<Sender,Receiver,Msg>> messageSendProcessors)
MessageManager
setMessageSendProcessors
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
public void addMessageSendProcessor(MessageSendProcessor<Sender,Receiver,Msg> messageSendProcessor)
MessageManager
addMessageSendProcessor
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
public Collection<Msg> getMessages() throws MessageException
getMessages
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
MessageException
public void sendMessage(Sender messageSender, Collection<Receiver> messageReceivers, Msg message) throws MessageException
sendMessage
in interface MessageManager<Account extends MessageAccount,Sender extends MessageSender,Receiver extends MessageReceiver,Msg extends Message>
MessageException
Copyright © 2006–2018 TinyGroup. All rights reserved.