public interface AsyncBackTranslationService
Modifier and Type | Method and Description |
---|---|
AsyncBackTranslationResult |
getCurrentResult(String token) |
String |
startBackTranslation(String sourceLang,
String intermediateLang,
String[] sources)
Run asynchronous back translation.
|
void |
terminate(String token) |
String startBackTranslation(String sourceLang, String intermediateLang, String[] sources) throws InvalidParameterException, ProcessFailedException
sourceLang
- Translation source language (RFC3066 compliant)intermediateLang
- Intermediate language of the translation (RFC3066 compliant)array
- of source String to be translatedInvalidParameterException
- An invalid parameter was passedProcessFailedException
- Translation process failedAsyncBackTranslationResult 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