/** * Generates the events that are collected over the span of one delta. */ public void deltaEnd() { if (!participantsAdded.isEmpty() || !participantsRemoved.isEmpty()) { String rootBlipId = ConversationUtil.getRootBlipId(conversation); WaveletParticipantsChangedEvent event = new WaveletParticipantsChangedEvent(null, null, deltaAuthor.getAddress(), deltaTimestamp, rootBlipId, participantsAdded, participantsRemoved); addEvent(event, capabilities, rootBlipId, messages); } clearOncePerDeltaCollectors(); deltaAuthor = null; deltaTimestamp = null; }
new EventGeneratingConversationListener(conversation, capabilities, messages, robotName); conversation.addListener(conversationListener); EventGeneratingWaveletListener waveletListener = conversationListener.deltaBegin(delta.getAuthor(), timestamp); conversationListener.deltaEnd();