Class SharedTranslationCache
java.lang.Object
com.e1c.langtool.internal.external.cache.TranslationCacheManager
com.e1c.langtool.internal.external.cache.SharedTranslationCache
- All Implemented Interfaces:
ICache<TranslationQueryEntity,,TranslationResultEntity> ITranslationCacheManager,ITranslationCacheManager.ITranslationCache
public class SharedTranslationCache
extends TranslationCacheManager
implements ITranslationCacheManager.ITranslationCache
This class unions the caches for all registered translation providers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.e1c.langtool.external.cache.ITranslationCacheManager
ITranslationCacheManager.ITranslationCache -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()voidput(TranslationQueryEntity key, TranslationResultEntity value) voidputAll(Map<? extends TranslationQueryEntity, ? extends TranslationResultEntity> map) voidvoidvoidlongsize()Methods inherited from class com.e1c.langtool.internal.external.cache.TranslationCacheManager
getCacheByProviderId, getCaches, setCache
-
Constructor Details
-
SharedTranslationCache
public SharedTranslationCache()
-
-
Method Details
-
put
- Specified by:
putin interfaceICache<TranslationQueryEntity,TranslationResultEntity>
-
putAll
- Specified by:
putAllin interfaceICache<TranslationQueryEntity,TranslationResultEntity>
-
get
- Specified by:
getin interfaceICache<TranslationQueryEntity,TranslationResultEntity>
-
getAll
- Specified by:
getAllin interfaceICache<TranslationQueryEntity,TranslationResultEntity>
-
remove
- Specified by:
removein interfaceICache<TranslationQueryEntity,TranslationResultEntity>
-
removeAll
- Specified by:
removeAllin interfaceICache<TranslationQueryEntity,TranslationResultEntity>
-
removeAll
public void removeAll()- Specified by:
removeAllin interfaceICache<TranslationQueryEntity,TranslationResultEntity>
-
size
public long size()- Specified by:
sizein interfaceICache<TranslationQueryEntity,TranslationResultEntity>
-