@Override
    public void snapshot(MetricsRecordBuilder builder, boolean all) {
        if (all || changed()) {
            builder.addDelta(name, description, value);
            set(initValue);
            clearChanged();
        }
    }