AsyncEvent (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.cache.asyncqueue, interface: AsyncEvent

Package org.apache.geode.cache.asyncqueue

# Interface AsyncEvent<K,V>

All Superinterfaces:
  `GatewayQueueEvent<K,V>`

public interface AsyncEvent<K,V> extends GatewayQueueEvent<K,V>
Represents `Cache` events delivered to `AsyncEventListener`.

Since:
  GemFire 7.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `EventSequenceID`
  `getEventSequenceID()`
  Returns the wrapper over the DistributedMembershipID, ThreadID, SequenceID which are used to uniquely identify any region operation like create, update etc.
  `boolean`
  `getPossibleDuplicate()`
  Returns whether possibleDuplicate is set for this event.

  ### Methods inherited from interface org.apache.geode.cache.wan.GatewayQueueEvent

  `getCallbackArgument, getDeserializedValue, getKey, getOperation, getRegion, getSerializedValue`

- ## Method Details

  - ### getPossibleDuplicate

    boolean getPossibleDuplicate()
    Returns whether possibleDuplicate is set for this event.
    Returns:
      whether possibleDuplicate is set for this event

  - ### getEventSequenceID

    EventSequenceID getEventSequenceID()
    Returns the wrapper over the DistributedMembershipID, ThreadID, SequenceID which are used to uniquely identify any region operation like create, update etc. This helps in sequencing the events belonging to a unique producer. e.g. The EventID can be used to track events received by `AsyncEventListener` to avoid processing duplicates.
    Returns:
      the wrapper over the DistributedMembershipID, ThreadID, SequenceID which are used to uniquely identify any region operation