Package kieker.analysis.plugin.reader
Class StringRegistryCache
java.lang.Object
kieker.analysis.plugin.reader.StringRegistryCache
@Deprecated
public class StringRegistryCache
extends java.lang.Object
Deprecated.
since 1.15.1 old plugin api
Cache to store and retrieve string registries.
- Since:
 - 1.13
 - Author:
 - Holger Knoche
 
- 
Constructor Summary
Constructors Constructor Description StringRegistryCache(long expirationDuration, java.util.concurrent.TimeUnit expirationTimeUnit)Deprecated.Creates a new registry cache using the given cache duration configuration. - 
Method Summary
Modifier and Type Method Description protected com.google.common.cache.Cache<java.lang.Long,ReaderRegistry<java.lang.String>>createCache(long expirationDuration, java.util.concurrent.TimeUnit expirationTimeUnit)Deprecated.Creates the underlying cache.ReaderRegistry<java.lang.String>getOrCreateRegistry(java.lang.Long registryId)Deprecated.Retrieves the registry with the given ID and creates a new one if necessary. 
- 
Constructor Details
- 
StringRegistryCache
public StringRegistryCache(long expirationDuration, java.util.concurrent.TimeUnit expirationTimeUnit)Deprecated.Creates a new registry cache using the given cache duration configuration.- Parameters:
 expirationDuration- The duration until a registry is evictedexpirationTimeUnit- The time unit for the expiration duration
 
 - 
 - 
Method Details
- 
createCache
protected com.google.common.cache.Cache<java.lang.Long,ReaderRegistry<java.lang.String>> createCache(long expirationDuration, java.util.concurrent.TimeUnit expirationTimeUnit)Deprecated.Creates the underlying cache. This method can be overridden to tweak the cache configuration.- Parameters:
 expirationDuration- The duration until a cache entry expiresexpirationTimeUnit- The time unit for the expiration duration- Returns:
 - The cache instance to use
 
 - 
getOrCreateRegistry
Deprecated.Retrieves the registry with the given ID and creates a new one if necessary.- Parameters:
 registryId- The ID of the desired registry- Returns:
 - The appropriate string registry
 
 
 -