EventSequenceID (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.cache.wan, class: EventSequenceID

Package org.apache.geode.cache.wan

# Class EventSequenceID

java.lang.Object
org.apache.geode.cache.wan.EventSequenceID

public class EventSequenceID extends Object
This class wraps 1) DistributedMembershipID 2) ThreadID 3) SequenceID attributes which are used to uniquely identify any Region Operation like create, update, destroy etc. This helps in sequencing the events belonging to a unique producer. As an example, the EventSequenceID can be used to track the events received by `AsyncEventListener`. If the event has already been seen, `AsyncEventListener` can choose to ignore it.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `EventSequenceID(byte[] membershipID, long threadID, long sequenceID)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object obj)`
  `String`
  `getMembershipID()`
  `long`
  `getSequenceID()`
  `long`
  `getThreadID()`
  `int`
  `hashCode()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### EventSequenceID

    public EventSequenceID(byte[] membershipID, long threadID, long sequenceID)

- ## Method Details

  - ### getMembershipID

    public String getMembershipID()

  - ### getThreadID

    public long getThreadID()

  - ### getSequenceID

    public long getSequenceID()

  - ### equals

    public boolean equals(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`