@Override
    public long read(ByteBuffer buffer) {
      return buffer.getShort();
    }
Reads the short value of id from the buffer and returns it as long.

@param buffer - the buffer from which 'id'(threadId or sequenceId) is to be read
@return - the value of the id as long
geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java