nextEnvelope = this.queuedEnvelopes.poll();
}
// schedule events as pending, because events come always after the buffer!
@SuppressWarnings("unchecked")
List<AbstractEvent> events = (List<AbstractEvent>) nextEnvelope.deserializeEvents();
Iterator<AbstractEvent> eventsIt = events.iterator();
if (eventsIt.hasNext()) {
this.pendingEvents = eventsIt;
}