@Override public long getSpanYoungGCCollectionCount() { long current = getYoungGCCollectionCount(); if (lastYoungGCCollectionCount == -1) { lastYoungGCCollectionCount = current; return 0; } else { long result = current - lastYoungGCCollectionCount; lastYoungGCCollectionCount = current; return result; } }
@Override public long getSpanYoungGCCollectionCount() { long current = getYoungGCCollectionCount(); if (lastYoungGCCollectionCount == -1) { lastYoungGCCollectionCount = current; return 0; } else { long result = current - lastYoungGCCollectionCount; lastYoungGCCollectionCount = current; return result; } }
@Override public long getSpanYoungGCCollectionCount() { long current = getYoungGCCollectionCount(); if (lastYoungGCCollectionCount == -1) { lastYoungGCCollectionCount = current; return 0; } else { long result = current - lastYoungGCCollectionCount; lastYoungGCCollectionCount = current; return result; } }