public class StringRegistryCache
extends java.lang.Object
| Constructor and Description | 
|---|
StringRegistryCache(long expirationDuration,
                   java.util.concurrent.TimeUnit expirationTimeUnit)
Creates a new registry cache using the given cache duration configuration. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected com.google.common.cache.Cache<java.lang.Long,ILookup<java.lang.String>> | 
createCache(long expirationDuration,
           java.util.concurrent.TimeUnit expirationTimeUnit)
Creates the underlying cache. 
 | 
ILookup<java.lang.String> | 
getOrCreateRegistry(java.lang.Long registryId)
Retrieves the registry with the given ID and creates a new one if necessary. 
 | 
public StringRegistryCache(long expirationDuration,
                   java.util.concurrent.TimeUnit expirationTimeUnit)
expirationDuration - The duration until a registry is evictedexpirationTimeUnit - The time unit for the expiration durationprotected com.google.common.cache.Cache<java.lang.Long,ILookup<java.lang.String>> createCache(long expirationDuration, java.util.concurrent.TimeUnit expirationTimeUnit)
expirationDuration - The duration until a cache entry expiresexpirationTimeUnit - The time unit for the expiration durationpublic ILookup<java.lang.String> getOrCreateRegistry(java.lang.Long registryId)
registryId - The ID of the desired registryCopyright 2017 Kieker Project, http://kieker-monitoring.net