Hello, *i am writing a **AsyncEventListener implementation as following where i am getting duplicate events (same event multiple times). How can i detect whether a particular event is duplicate or not?*
public boolean processEvents(List<AsyncEvent> events) { for (AsyncEvent asyncEvent : events) { GatewaySenderEventImpl event = (GatewaySenderEventImpl) (asyncEvent); final Operation op = event.getOperation(); if (!event.getPossibleDuplicate()) { if (op == Operation.CREATE) { //create event } else if (op == Operation.UPDATE) { //update event } else if (op == Operation.DESTROY) { //destroy event } else { /*other event*/ } } else { //duplicate event } }} Thanks in advance. Nilkanth.