@Deprecated
public interface ConversionService
| Modifier and Type | Field and Description |
|---|---|
static int |
CONVERSION_MAX_NUM_PER_REQUEST
Deprecated.
Maximum number of conversions allowed in one request.
|
static int |
CONVERSION_MAX_SIZE_BYTES
Deprecated.
Maximum bytes size of one conversion to be converted.
|
| Modifier and Type | Method and Description |
|---|---|
ConversionResult |
convert(Conversion conversion)
Deprecated.
Runs a conversion.
|
java.util.List<ConversionResult> |
convert(java.util.List<Conversion> conversions)
Deprecated.
Executes multiple conversions in one request to the conversion backend.
|
java.util.concurrent.Future<ConversionResult> |
convertAsync(Conversion conversion)
Deprecated.
Runs a conversion asynchronously.
|
java.util.concurrent.Future<java.util.List<ConversionResult>> |
convertAsync(java.util.List<Conversion> conversions)
Deprecated.
Executes multiple conversions in one request to the conversion backend
asynchronously.
|
static final int CONVERSION_MAX_SIZE_BYTES
static final int CONVERSION_MAX_NUM_PER_REQUEST
ConversionResult convert(Conversion conversion)
conversion - the Conversion instance to runConversionServiceException - if the conversion fails with the reason
specified in ConversionErrorCodejava.lang.IllegalArgumentException - if the input conversion is invalidjava.util.List<ConversionResult> convert(java.util.List<Conversion> conversions)
conversions - a collection of Conversion instances to runConversionServiceException - if the conversion fails with the reason
specified in ConversionErrorCodejava.lang.IllegalArgumentException - if the input conversions are invalidjava.util.concurrent.Future<ConversionResult> convertAsync(Conversion conversion)
conversion - the Conversion instance to runFuture.get() may throw ConversionServiceException if
the conversion fails with the reason specified in
ConversionErrorCodejava.lang.IllegalArgumentException - if the input conversion is invalidjava.util.concurrent.Future<java.util.List<ConversionResult>> convertAsync(java.util.List<Conversion> conversions)
conversions - a collection of Conversion instances to runFuture.get() may throw
ConversionServiceException if the conversion fails with
the reason specified in ConversionErrorCodejava.lang.IllegalArgumentException - if the input conversions are invalid