Class StringRegistryCache

java.lang.Object
kieker.analysis.plugin.reader.StringRegistryCache

@Deprecated public class StringRegistryCache extends Object
Deprecated.
since 1.15.1 old plugin api
Cache to store and retrieve string registries.
Since:
1.13
Author:
Holger Knoche
  • Constructor Details

    • StringRegistryCache

      public StringRegistryCache(long expirationDuration, TimeUnit expirationTimeUnit)
      Deprecated.
      Creates a new registry cache using the given cache duration configuration.
      Parameters:
      expirationDuration - The duration until a registry is evicted
      expirationTimeUnit - 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 expires
      expirationTimeUnit - The time unit for the expiration duration
      Returns:
      The cache instance to use
    • getOrCreateRegistry

      public ReaderRegistry<String> getOrCreateRegistry(Long registryId)
      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