package org.rmatil.sync.test.messaging.base;

import net.engio.mbassy.listener.Handler;
import org.rmatil.sync.core.eventbus.*;

import java.util.ArrayList;
import java.util.List;

public class GlobalEventBusDummyListener {

    protected List<IBusEvent> receivedBusEvents;

    public GlobalEventBusDummyListener() {
        this.receivedBusEvents = new ArrayList<>();
    }

    @Handler
    public void handleCreateBusEvent(CreateBusEvent createBusEvent) {
        this.receivedBusEvents.add(createBusEvent);
    }

    @Handler
    public void handleIgnoreBusEvent(IgnoreBusEvent ignoreBusEvent) {
        this.receivedBusEvents.add(ignoreBusEvent);
    }

    @Handler
    public void handleIgnoreObjectStoreUpdateBusEvent(IgnoreObjectStoreUpdateBusEvent ignoreObjectStoreUpdateBusEvent) {
        this.receivedBusEvents.add(ignoreObjectStoreUpdateBusEvent);
    }

    @Handler
    public void handleAddSharerToObjectStoreBusEvent(AddSharerToObjectStoreBusEvent addSharerToObjectStoreBusEvent) {
        this.receivedBusEvents.add(addSharerToObjectStoreBusEvent);
    }

    public void clear() {
        this.receivedBusEvents.clear();
    }

    public List<IBusEvent> getReceivedBusEvents() {
        return this.receivedBusEvents;
    }
}

@@ -386,32 +386,45 @@
 dler%0A    public 
+synchronized 
 void handleCreat
@@ -541,32 +541,45 @@
 dler%0A    public 
+synchronized 
 void handleIgnor
@@ -696,32 +696,45 @@
 dler%0A    public 
+synchronized 
 void handleIgnor
@@ -923,24 +923,37 @@
 %0A    public 
+synchronized 
 void handleA
@@ -1133,16 +1133,29 @@
  public 
+synchronized 
 void cle
@@ -1219,16 +1219,29 @@
  public 
+synchronized 
 List%3CIBu

Add synchronized to methods