V - the back end value typeD - the Diffusion value type - must be JSON, String,
Long, Double or Binary types.public interface OutboundPayloadConvertor<V,D> extends PayloadConvertor<V,D>
An outbound convertor converts values of Diffusion data types to external
data types. It is used to convert values passed to a SinkHandler via
its update method or to a HybridHandler
via its update method.
Outbound Payload convertors are declared with configuration files in the
resource directory META-INF/services. The file name should be
META-INF/services/com.diffusiondata.gateway.framework.convertors.OutboundPayloadConvertor
and each line within the file declares the full name of a payload convertor
class.
See Package Guide for
more details.
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_TO_AVRO
The name of the provided JSON to Avro outbound payload convertor.
|
DEFAULT_BINARY, DEFAULT_DOUBLE, DEFAULT_INT64, DEFAULT_JSON, DEFAULT_STRING| Modifier and Type | Method and Description |
|---|---|
V |
fromDiffusionType(D value)
Converts a Diffusion typed value object to an object of the type known to
the back end.
|
getDiffusionType, getNamestatic final String JSON_TO_AVRO
see the Package
Guide for full details of the conversions this convertor performs.
V fromDiffusionType(D value) throws PayloadConversionException
value - the Diffusion typed valuePayloadConversionException - if the convertor fails to convert the
valueCopyright © 2023 DiffusionData Limited. All rights reserved.