/** * Adds <tt>minfo</tt> into the list of collected messages. * * @param c Conversation * @param minfo MessageInfo */ public void gotMessage(Conversation c, MessageInfo minfo) { logger.debug("Message: [" + minfo.getMessage() + "] received from: " + c.getBuddy()); synchronized (this) { collectedMessageInfo.add(minfo); notifyAll(); } }
/** * Called when the underlying implementation has received an indication that a message, sent * earlier has been successfully received by the destination. * * @param evt the MessageDeliveredEvent containing the id of the message that has caused the * event. */ public void messageDelivered(MessageDeliveredEvent evt) { logger.debug("Received a MessageDeliveredEvent: " + evt); synchronized (this) { collectedEvents.add(evt); notifyAll(); } }