Javadoc
Update an unprocessed event in the unprocessed events map. This method is
called by a primary Gateway
(through
com.gemstone.gemfire.internal.cache.GatewayImpl.SecondaryGatewayListener#afterCreate)
to notify the secondary Gateway
that an event has been
added to the queue.
Once an event has been added to the queue, the
secondary no longer needs to keep track of it in the unprocessed events
map. The complexity of this method is the fact that the event could be
processed first by either the primary or secondary Gateway
.
If the primary processes the event first, the map will not contain an
entry for the event. It will be added to the map in this case so that
when the secondary processes it, it will know that the primary has
already processed it, and it can be safely removed.
If the secondary processes the event first, the map will already contain
an entry for the event.
In this case, the event can be removed from the map.