public class GuavaLookupCache extends LookupCache
Modifier and Type | Class and Description |
---|---|
static class |
GuavaLookupCache.Config |
static class |
GuavaLookupCache.Descriptor |
static interface |
GuavaLookupCache.Factory |
Constructor and Description |
---|
GuavaLookupCache(String id,
String name,
LookupCacheConfiguration c,
int processorCount,
com.codahale.metrics.MetricRegistry metricRegistry) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart() |
protected void |
doStop() |
com.codahale.metrics.Gauge<Long> |
entryCount() |
LookupResult |
get(LookupCacheKey key,
Callable<LookupResult> loader) |
LookupResult |
getIfPresent(LookupCacheKey key) |
void |
purge() |
void |
purge(LookupCacheKey purgeKey) |
clearError, getConfig, getError, id, incrHitCount, incrMissCount, incrTotalCount, lookupTimer, name, setError, setId, shutDown, startUp
public static final String NAME
@Inject public GuavaLookupCache(String id, String name, LookupCacheConfiguration c, @Named(value="processbuffer_processors") int processorCount, com.codahale.metrics.MetricRegistry metricRegistry)
public com.codahale.metrics.Gauge<Long> entryCount()
entryCount
in class LookupCache
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–2018 Graylog, Inc.. All rights reserved.