public class EventPostingRuleKeyCacheScope<V> extends Object implements RuleKeyCacheScope<V>
RuleKeyCacheScope
which logs stats on close.Constructor and Description |
---|
EventPostingRuleKeyCacheScope(BuckEventBus buckEventBus,
TrackedRuleKeyCache<V> cache) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(SimplePerfEvent.Scope scope)
Additional cleanup.
|
void |
close() |
TrackedRuleKeyCache<V> |
getCache() |
protected void |
setup(SimplePerfEvent.Scope scope)
Additional setup.
|
public EventPostingRuleKeyCacheScope(BuckEventBus buckEventBus, TrackedRuleKeyCache<V> cache)
protected void setup(SimplePerfEvent.Scope scope)
protected void cleanup(SimplePerfEvent.Scope scope)
public final TrackedRuleKeyCache<V> getCache()
getCache
in interface RuleKeyCacheScope<V>
RuleKeyCache
.public final void close()
close
in interface RuleKeyCacheScope<V>
close
in interface AutoCloseable