Package kieker.analysis.plugin.reader
Class StringRegistryCache
java.lang.Object
kieker.analysis.plugin.reader.StringRegistryCache
Deprecated.
since 1.15.1 old plugin api
Cache to store and retrieve string registries.
- Since:
- 1.13
- Author:
- Holger Knoche
-
Constructor Summary
ConstructorsConstructorDescriptionStringRegistryCache(long expirationDuration, TimeUnit expirationTimeUnit) Deprecated.Creates a new registry cache using the given cache duration configuration. -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.cache.Cache<Long,ReaderRegistry<String>> createCache(long expirationDuration, TimeUnit expirationTimeUnit) Deprecated.Creates the underlying cache.getOrCreateRegistry(Long registryId) Deprecated.Retrieves the registry with the given ID and creates a new one if necessary.
-
Constructor Details
-
StringRegistryCache
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<Long,ReaderRegistry<String>> createCache(long expirationDuration, 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
-