Interface LocalizationServiceAccess
-
- All Implemented Interfaces:
public interface LocalizationServiceAccessAPI to invoke localization service operations.
-
-
Method Summary
Modifier and Type Method Description abstract ListenableFuture<GetLocalizedTextResponse>getLocalizedText(GetLocalizedText getLocalizedTextRequest)Invokes a localization service to get localized texts. abstract ListenableFuture<GetSupportedLanguagesResponse>getSupportedLanguages(GetSupportedLanguages getSupportedLanguagesRequest)Invokes a localization service to get supported languages. voidcachePrefetch(BigInteger version)Calls a synchronous cache prefetch of localized texts by provided version. voidcachePrefetch(BigInteger version, List<String> lang)Calls a synchronous cache prefetch of localized texts by provided version and languages. -
-
Method Detail
-
getLocalizedText
abstract ListenableFuture<GetLocalizedTextResponse> getLocalizedText(GetLocalizedText getLocalizedTextRequest)
Invokes a localization service to get localized texts.
If there is no localization service available, this function returns with a cancelled future.
- Parameters:
getLocalizedTextRequest- the request to send to the localization service.- Returns:
a future object that contains a list of localized texts.
-
getSupportedLanguages
abstract ListenableFuture<GetSupportedLanguagesResponse> getSupportedLanguages(GetSupportedLanguages getSupportedLanguagesRequest)
Invokes a localization service to get supported languages.
If there is no localization service available, this function returns with a cancelled future.
- Parameters:
getSupportedLanguagesRequest- the request to get supported languages.- Returns:
a future object that contains a list of supported languages.
-
cachePrefetch
void cachePrefetch(BigInteger version)
Calls a synchronous cache prefetch of localized texts by provided version.
- Parameters:
version- - a version of localized texts to be included into cache.
-
cachePrefetch
void cachePrefetch(BigInteger version, List<String> lang)
Calls a synchronous cache prefetch of localized texts by provided version and languages.
- Parameters:
version- a version of localized texts to be included into cache.lang- optional list of languages to be included into cache.
-
-
-
-