public long extract(long val) {
      return (val >> position) & mask();
    }
Extracts the field bits from the value.

@param val the value
@return the field
geode-core/src/main/java/org/apache/geode/internal/cache/ha/ThreadIdentifier.java