public class NullCache extends LookupCache
Modifier and Type | Class and Description |
---|---|
static class |
NullCache.Config |
static class |
NullCache.Descriptor |
static interface |
NullCache.Factory |
Constructor and Description |
---|
NullCache(String id,
String name,
LookupCacheConfiguration c,
com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
LookupResult |
get(LookupCacheKey key,
Callable<LookupResult> loader) |
LookupResult |
getIfPresent(LookupCacheKey key) |
void |
purge() |
void |
purge(LookupCacheKey purgeKey) |
clearError, entryCount, getConfig, getError, id, incrHitCount, incrHitCount, incrMissCount, incrMissCount, incrTotalCount, incrTotalCount, lookupTimer, name, setError, setId, shutDown, startUp
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toString
public static final String NAME
@Inject public NullCache(String id, String name, LookupCacheConfiguration c, com.codahale.metrics.MetricRegistry metricRegistry)
protected void doStart() throws Exception
doStart
in class LookupCache
Exception
protected void doStop() throws Exception
doStop
in class LookupCache
Exception
public LookupResult get(LookupCacheKey key, Callable<LookupResult> loader)
get
in class LookupCache
public LookupResult getIfPresent(LookupCacheKey key)
getIfPresent
in class LookupCache
public void purge()
purge
in class LookupCache
public void purge(LookupCacheKey purgeKey)
purge
in class LookupCache
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.