break;
}
case ADD_MESSAGE:
{
ServerMessage message = new ServerMessageImpl(record.id, 50);
message.decode(buff);
messages.put(record.id, message);
break;
}
case ADD_REF:
{
long messageID = record.id;
RefEncoding encoding = new RefEncoding();
encoding.decode(buff);
Map<Long, AddMessageRecord> queueMessages = queueMap.get(encoding.queueID);
if (queueMessages == null)
{
queueMessages = new LinkedHashMap<Long, AddMessageRecord>();
queueMap.put(encoding.queueID, queueMessages);
}
ServerMessage message = messages.get(messageID);
if (message == null)
{
log.error("Cannot find message " + record.id);
}