Class AmqpEnDec
java.lang.Object
io.aiven.kafka.connect.amqp.common.data.EncoderDecoder
io.aiven.kafka.connect.amqp.common.data.AmqpEnDec
Converts AMQP values.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.aiven.kafka.connect.amqp.common.data.EncoderDecoder
EncoderDecoder.ChainedEnDec -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.aiven.kafka.connect.amqp.common.data.EncoderDecoder
andThen, self, setSelf, toString
-
Constructor Details
-
AmqpEnDec
public AmqpEnDec()Constructor.
-
-
Method Details
-
encode
Description copied from class:EncoderDecoderEncodes thevalueas a SchemaAndValue. If this converter can not perform the encoding it returns an emptyOptional.- Specified by:
encodein classEncoderDecoder- Parameters:
value- the value to convert.- Returns:
- the Optional SchemaAndValue or an empty Optional.
-
decode
Description copied from class:EncoderDecoderDecodes a SchemaAndValue into an object. If this converter can not perform the decoding it returns an emptyOptional.- Specified by:
decodein classEncoderDecoder- Parameters:
schemaAndValue- the schema and value to decode.- Returns:
- the Optional Object or an empty Optional if not decoded.
-