public static long readEventIdPartsFromOptimizedByteArray(ByteBuffer buffer) {
    byte byteType = buffer.get();
    return fillerArray.get(byteType).read(buffer);
  }
Reads the optimized byte-array representation of an eventId and returns the long value of
threadId or sequenceId. The first invocation of this method on bytebuffer returns the threadId
and the second returns the sequenceId.

@param buffer - the byte-buffer wrapping the optimized byte-array for the eventId
@return - long value of threadId or sequenceId
geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java