public class CaffeineLookupCache extends LookupCache
| Modifier and Type | Class and Description |
|---|---|
static class |
CaffeineLookupCache.Config |
static class |
CaffeineLookupCache.Descriptor |
static interface |
CaffeineLookupCache.Factory |
| Constructor and Description |
|---|
CaffeineLookupCache(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() |
long |
entryCount()
Get the number of elements in this lookup cache.
|
LookupResult |
get(LookupCacheKey key,
Callable<LookupResult> loader) |
LookupResult |
getIfPresent(LookupCacheKey key) |
void |
purge() |
void |
purge(LookupCacheKey purgeKey) |
clearError, 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 CaffeineLookupCache(String id, String name, LookupCacheConfiguration c, @Named(value="processbuffer_processors") int processorCount, com.codahale.metrics.MetricRegistry metricRegistry)
public long entryCount()
LookupCacheentryCount in class LookupCache-1L if the cache does not support counting entriesprotected 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.