use of pers.cy.iris.commons.model.message.StoreMessage in project iris by chicc999.
the class PutMessageHandler method process.
@Override
public Command process(ChannelHandlerContext ctx, Command command) throws Exception {
PutMessage putMessage = (PutMessage) command;
System.out.println("收到putMessage请求," + new String(putMessage.getMessages()[0].getBody()));
Message[] messages = putMessage.getMessages();
for (Message message : messages) {
store.putMessage((StoreMessage) message);
}
return new ErrorResponse(200, "", command.getRequestId());
}
Aggregations