/** * Get the name of this {@link MetricContext}. * * @return the name of this {@link MetricContext} */ public String getName() { return this.innerMetricContext.getName(); }
@Override public boolean apply(Notification input) { if (input instanceof NewMetricContextNotification && ((NewMetricContextNotification) input).getInnerMetricContext().getName().equals(this.name)) { return true; } if (input instanceof MetricContextCleanupNotification && ((MetricContextCleanupNotification) input).getMetricContext().getName().equals(this.name)) { return true; } return false; } }
/** * Get the name of this {@link MetricContext}. * * @return the name of this {@link MetricContext} */ public String getName() { return this.innerMetricContext.getName(); }