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, startUpaddListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, executor, failureCause, isRunning, serviceName, startAsync, state, stopAsync, toStringpublic 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 LookupCacheExceptionprotected void doStop()
throws Exception
doStop in class LookupCacheExceptionpublic LookupResult get(LookupCacheKey key, Callable<LookupResult> loader)
get in class LookupCachepublic LookupResult getIfPresent(LookupCacheKey key)
getIfPresent in class LookupCachepublic void purge()
purge in class LookupCachepublic void purge(LookupCacheKey purgeKey)
purge in class LookupCacheCopyright © 2012–2021 Graylog, Inc.. All rights reserved.