public static long reserveSequenceId() {
    ThreadAndSequenceIDWrapper wrapper = threadIDLocal.get();
    return wrapper.getAndIncrementSequenceID();
  }
Reserves and returns a sequence id for the calling thread to be used for an event id.

@since GemFire 5.7
geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java