Alias for Deserializer[Either[Throwable, A]]
.
Creates a new Deserializer which deserializes
all bytes to the specified value of type A
.
Creates a new Deserializer which delegates deserialization
to the specified Kafka Deserializer
.
Creates a new Deserializer which delegates deserialization
to the specified Kafka Deserializer
. Note that the close
and configure
functions won't be called for the delegate.
Creates a new Deserializer which can use different Deserializers depending on the record headers.
The identity Deserializer, which does not perform any kind of deserialization, simply using the input bytes as the output.
Creates a new Deserializer from the specified function.
Creates a new Deserializer from the specified function. Use lift instead if the deserializer doesn't need access to the Kafka topic name or record headers.
Creates a new Deserializer from the specified function, ignoring from which Kafka topic the bytes came and any record headers.
Creates a new Deserializer from the specified function, ignoring from which Kafka topic the bytes came and any record headers. Use instance instead if the deserializer needs access to the Kafka topic name or the record headers.
The option Deserializer returns None
when the bytes are
null
, and otherwise deserializes using the deserializer for
the type A
, wrapping the result in Some
.
Creates a new Deserializer which deserializes String
values using the specified Charset
.
Creates a new Deserializer which deserializes String
values using the specified Charset
. Note that the
default String
deserializer uses UTF-8
.
Creates a new Deserializer which can use different Deserializers depending on the Kafka topic name from which the serialized bytes came.
Creates a new Deserializer which deserializes String
values using the specified Charset
as UUID
s.
Creates a new Deserializer which deserializes String
values using the specified Charset
as UUID
s. Note that
the default UUID
deserializer uses UTF-8
.