@Override protected BasicPoolEntry getFreeEntry(RouteSpecificPool rospl, Object state) { BasicPoolEntry entry = super.getFreeEntry(rospl, state); if (entry != null) { freeEntryCounter.increment(); } return entry; }
public final long getCreatedEntryCount() { return createEntryCounter.getValue().longValue(); }
@Override public void freeEntry(BasicPoolEntry entry, boolean reusable, long validDuration, TimeUnit timeUnit) { releaseCounter.increment(); super.freeEntry(entry, reusable, validDuration, timeUnit); }
public final long getReleaseCount() { return releaseCounter.getValue().longValue(); }
@Override public PoolEntryRequest requestPoolEntry(HttpRoute route, Object state) { requestCounter.increment(); return super.requestPoolEntry(route, state); }
public final long getDeleteCount() { return deleteCounter.getValue().longValue(); }
@Override protected void deleteEntry(BasicPoolEntry entry) { deleteCounter.increment(); super.deleteEntry(entry); }
public final long getFreeEntryCount() { return freeEntryCounter.getValue().longValue(); }
/** * {@inheritDoc} */ @Override public void increment() { getMonitorForCurrentContext().increment(); }
public final long getRequestsCount() { return requestCounter.getValue().longValue(); }
/** * Increment a counter based on a given {@link MonitorConfig}. */ public static void increment(MonitorConfig config) { INSTANCE.get(config).increment(); }
/** * Get the number of times this timer has been updated. */ public long getCount(int pollerIndex) { return count.getValue(pollerIndex).longValue(); }
/** * Increment a counter based on a given {@link MonitorConfig} by a given delta. * * @param config The monitoring config * @param delta The amount added to the current value */ public static void increment(MonitorConfig config, long delta) { INSTANCE.get(config).increment(delta); }
/** * Get the total time for all updates. */ public Long getTotalTime() { return totalTime.getValue().longValue(); }
/** * {@inheritDoc} */ @Override public void increment(long amount) { getMonitorForCurrentContext().increment(amount); }
/** * Get the total time recorded for this timer. */ public long getTotalMeasurement() { return totalMeasurement.getValue().longValue(); }
public static void increment(String appName, String cacheName, String metricName) { final Counter counter = getCounter(appName, cacheName, null, metricName, DataSourceType.COUNTER); counter.increment(); }
/** * Get the number of times this timer has been updated. */ public long getCount() { return count.getValue().longValue(); }
public static void increment(String name) { final Counter counter = getCounter(name); counter.increment(); }