static Metadata gcTimeMeta(String poolName) { return new Metadata("gc." + poolName + ".time", "Garbage Collection Time", "Displays the approximate accumulated collection elapsed time in milliseconds. " + "This attribute displays -1 if the collection elapsed time is undefined for this " + "collector. The Java virtual machine implementation may use a high resolution " + "timer to measure the elapsed time. This attribute may display the same value " + "even if the collection count has been incremented if the collection elapsed " + "time is very short.", MetricType.GAUGE, MetricUnits.MILLISECONDS); }
@Override protected Object prepareAndInvoke(Timer timer, Timed annotation, InvocationContext context) throws Exception { return timer.time(context::proceed); } }
@Override public void mark(long n) { delegate.mark(n); }
@Override public void dec() { delegate.dec(); }
@Override public long getCount() { return delegate.getCount(); }
@Override public long getCount() { return delegate.getCount(); }
@Override public Snapshot getSnapshot() { return delegate.getSnapshot(); }
@Override public double getFiveMinuteRate() { return delegate.getFiveMinuteRate(); }
@Override public double getMeanRate() { return meter.getMeanRate(); }
@Override public double getFiveMinuteRate() { return delegate.getFiveMinuteRate(); }
@Override public double getOneMinuteRate() { return delegate.getOneMinuteRate(); }
@Override public Snapshot getSnapshot() { return delegate.getSnapshot(); }
@Override public double getOneMinuteRate() { return delegate.getOneMinuteRate(); }
static Metadata gcCountMeta(String poolName) { return new Metadata("gc." + poolName + ".count", "Garbage Collection Count", "Displays the total number of collections that have occurred. This attribute lists " + "-1 if the collection count is undefined for this collector.", MetricType.GAUGE, MetricUnits.NONE); }
@Override public <T> T time(Callable<T> event) throws Exception { return delegate.time(event); }
@Override public void dec(long n) { delegate.dec(n); }
@Override public long getCount() { return histogram.getCount(); }
@Override public double getFiveMinuteRate() { return meter.getFiveMinuteRate(); }
@Override public double getMeanRate() { return delegate.getMeanRate(); }