SerializedMetrics ser = _cachedMetrics.get();
long now = _timeMaster.currentTimeMillis();
if (_shouldRefresh(forceRefresh, now, ser)) {
ExternalMetrics metrics = _gatherMetrics(now, full);
ObjectWriter w = _jsonWriter;
if (_indent.get()) {
w = w.withDefaultPrettyPrinter();
}
final byte[] raw = w.writeValueAsBytes(metrics);