public interface AsyncTranslationService
| Modifier and Type | Method and Description |
|---|---|
AsyncTranslationResult |
getCurrentResult(String token) |
String |
startTranslation(String sourceLang,
String targetLang,
String[] sources)
Run asynchronous translation.
|
void |
terminate(String token) |
String startTranslation(String sourceLang, String targetLang, String[] sources) throws InvalidParameterException, ProcessFailedException
sourceLang - Translation source language (RFC3066 compliant)targetLang - Target language of the translation (RFC3066 compliant)array - of source String to be translatedInvalidParameterException - An invalid parameter was passedProcessFailedException - Translation process failedAsyncTranslationResult getCurrentResult(String token) throws InvalidParameterException, ProcessFailedException
token - InvalidParameterException - An invalid parameter was passedProcessFailedException - Translation process failedvoid terminate(String token) throws InvalidParameterException, ProcessFailedException
token - InvalidParameterException - An invalid parameter was passedProcessFailedException - Translation process failed