Interface ITranslationCacheManager

All Known Implementing Classes:
SharedTranslationCache, TranslationCacheManager

public interface ITranslationCacheManager
This interface provides getting and setting translation cache instances for specified providers by their ids.
  • Method Details

    • getCacheByProviderId

      ITranslationCacheManager.ITranslationCache getCacheByProviderId(String providerId)
      Returns the cache of translations for the given provider's id or null if this manager contains no cache for the given id.
      Parameters:
      providerId - the provider's id whose associated cache is to be returned
      Returns:
      the cache of translations for specified provider
    • setCache

      void setCache(String providerId, ITranslationCacheManager.ITranslationCache cache)
      Sets the cache of translations for specified provider.
      Parameters:
      providerId - the provider's id whose associated cache is to be set
      cache - the cache of translations
      Throws:
      IllegalArgumentException - if the specified provider's id is null or the given cache is null