count++; if (buffer.size() >= size) { buffer.remove(0); } buffer.add(new ReceivedEvent(messageContext, event)); notifyAll();
count.incrementAndGet(); events.add(new ReceivedEvent(messageContext, event)); notify();
    public synchronized void muwsEventReceived(MessageContext messageContext, SoapElement event) {        count++;        if (buffer.size() >= size) {            buffer.remove(0);        }        buffer.add(new ReceivedEvent(messageContext, event));        notifyAll();    }