final Thread t = new Thread(new Runnable() {
@Override
public void run() {
AbstractSessionEvent previousEvent = null;
while (allEvents.size() > 0) {
AbstractSessionEvent event = null;
event = allEvents.get(0);
allEvents.remove(0);
if (previousEvent == null) {
SessionReplayImpl.this.firstEventtime = event.originalEventTime;
previousEvent = event;
}
SessionReplayImpl.this.currentEventime = event.originalEventTime;
// Dont process if filtered
if (!SessionReplayImpl.this.toFilter.contains(event.getClass())) {
if (!isGettingMetaInfo()) {
listener.nextEvent(event);
// Can be switched off, to make replay as fast as possible.
if (SessionReplayImpl.this.realtimeReplay && !isGettingMetaInfo()) {