Search in sources :

Example 6 with EventWrapper

use of org.apache.geode.internal.cache.wan.AbstractGatewaySender.EventWrapper in project geode by apache.

the class SerialGatewaySenderEventProcessor method releaseUnprocessedEvents.

private void releaseUnprocessedEvents() {
    synchronized (this.unprocessedEventsLock) {
        Map<EventID, EventWrapper> m = this.unprocessedEvents;
        if (m != null) {
            for (EventWrapper ew : m.values()) {
                GatewaySenderEventImpl gatewayEvent = ew.event;
                gatewayEvent.release();
            }
            this.unprocessedEvents = null;
        }
    }
}
Also used : GatewaySenderEventImpl(org.apache.geode.internal.cache.wan.GatewaySenderEventImpl) EventID(org.apache.geode.internal.cache.EventID) EventWrapper(org.apache.geode.internal.cache.wan.AbstractGatewaySender.EventWrapper)

Aggregations

EventWrapper (org.apache.geode.internal.cache.wan.AbstractGatewaySender.EventWrapper)6 GatewaySenderStats (org.apache.geode.internal.cache.wan.GatewaySenderStats)4 EventID (org.apache.geode.internal.cache.EventID)3 IOException (java.io.IOException)2 LinkedHashMap (java.util.LinkedHashMap)2 Map (java.util.Map)2 CacheException (org.apache.geode.cache.CacheException)2 GatewaySenderEventImpl (org.apache.geode.internal.cache.wan.GatewaySenderEventImpl)2 Iterator (java.util.Iterator)1 RejectedExecutionException (java.util.concurrent.RejectedExecutionException)1 CancelException (org.apache.geode.CancelException)1 RegionDestroyedException (org.apache.geode.cache.RegionDestroyedException)1 GatewaySenderEventCallbackArgument (org.apache.geode.internal.cache.wan.GatewaySenderEventCallbackArgument)1