|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConversionService
A service which provides document conversion feature for applications.
Field Summary | |
---|---|
static int |
CONVERSION_MAX_NUM_PER_REQUEST
Maximum number of conversions allowed in one request. |
static int |
CONVERSION_MAX_SIZE_BYTES
Maximum bytes size of one conversion to be converted. |
Method Summary | |
---|---|
ConversionResult |
convert(Conversion conversion)
Runs a conversion. |
java.util.List<ConversionResult> |
convert(java.util.List<Conversion> conversions)
Executes multiple conversions in one request to the conversion backend. |
java.util.concurrent.Future<ConversionResult> |
convertAsync(Conversion conversion)
Runs a conversion asynchronously. |
java.util.concurrent.Future<java.util.List<ConversionResult>> |
convertAsync(java.util.List<Conversion> conversions)
Executes multiple conversions in one request to the conversion backend asynchronously. |
Field Detail |
---|
static final int CONVERSION_MAX_SIZE_BYTES
static final int CONVERSION_MAX_NUM_PER_REQUEST
Method Detail |
---|
ConversionResult convert(Conversion conversion)
conversion
- the Conversion instance to run
ConversionServiceException
- if the conversion fails with the reason
specified in ConversionErrorCode
java.lang.IllegalArgumentException
- if the input conversion is invalidjava.util.List<ConversionResult> convert(java.util.List<Conversion> conversions)
conversions
- a collection of Conversion instances to run
ConversionServiceException
- if the conversion fails with the reason
specified in ConversionErrorCode
java.lang.IllegalArgumentException
- if the input conversions are invalidjava.util.concurrent.Future<ConversionResult> convertAsync(Conversion conversion)
conversion
- the Conversion instance to run
Future.get()
may throw ConversionServiceException
if
the conversion fails with the reason specified in
ConversionErrorCode
java.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 run
Future.get()
may throw
ConversionServiceException
if the conversion fails with
the reason specified in ConversionErrorCode
java.lang.IllegalArgumentException
- if the input conversions are invalid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |