public static long getThreadId() {
    ThreadAndSequenceIDWrapper wrapper = threadIDLocal.get();
    return wrapper.threadID;
  }
Returns the thread id used by the calling thread for its event ids

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