HeaderDeserializer

sealed abstract class HeaderDeserializer[A]

HeaderDeserializer is a functional deserializer for Kafka record header values. It's similar to Deserializer, except it only has access to the header bytes, and it does not interoperate with the Kafka Deserializer interface.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def deserialize(bytes: Array[Byte]): A
Implicitly added by option

Deserializes the header value bytes into a value of type A.

Deserializes the header value bytes into a value of type A.

def deserialize(bytes: Array[Byte]): A

Deserializes the header value bytes into a value of type A.

Deserializes the header value bytes into a value of type A.

Concrete methods

final def attempt: Attempt[A]
Implicitly added by option

Creates a new HeaderDeserializer which catches any non-fatal exceptions during deserialization with this HeaderDeserializer.

Creates a new HeaderDeserializer which catches any non-fatal exceptions during deserialization with this HeaderDeserializer.

final def attempt: Attempt[A]

Creates a new HeaderDeserializer which catches any non-fatal exceptions during deserialization with this HeaderDeserializer.

Creates a new HeaderDeserializer which catches any non-fatal exceptions during deserialization with this HeaderDeserializer.

final def delay: HeaderDeserializer[Eval[A]]
Implicitly added by option

Creates a new HeaderDeserializer which does deserialization lazily by wrapping this HeaderDeserializer in Eval.always.

Creates a new HeaderDeserializer which does deserialization lazily by wrapping this HeaderDeserializer in Eval.always.

final def delay: HeaderDeserializer[Eval[A]]

Creates a new HeaderDeserializer which does deserialization lazily by wrapping this HeaderDeserializer in Eval.always.

Creates a new HeaderDeserializer which does deserialization lazily by wrapping this HeaderDeserializer in Eval.always.

final def flatMap[B](f: A => HeaderDeserializer[B]): HeaderDeserializer[B]
Implicitly added by option

Creates a new HeaderDeserializer using the result of this HeaderDeserializer and the specified function.

Creates a new HeaderDeserializer using the result of this HeaderDeserializer and the specified function.

final def flatMap[B](f: A => HeaderDeserializer[B]): HeaderDeserializer[B]

Creates a new HeaderDeserializer using the result of this HeaderDeserializer and the specified function.

Creates a new HeaderDeserializer using the result of this HeaderDeserializer and the specified function.

final def map[B](f: A => B): HeaderDeserializer[B]
Implicitly added by option

Creates a new HeaderDeserializer which applies the specified function f to the result of this HeaderDeserializer.

Creates a new HeaderDeserializer which applies the specified function f to the result of this HeaderDeserializer.

final def map[B](f: A => B): HeaderDeserializer[B]

Creates a new HeaderDeserializer which applies the specified function f to the result of this HeaderDeserializer.

Creates a new HeaderDeserializer which applies the specified function f to the result of this HeaderDeserializer.

final def option: HeaderDeserializer[Option[A]]
Implicitly added by option

Creates a new HeaderDeserializer which returns None when the bytes are null, and otherwise returns the result of this HeaderDeserializer wrapped in Some.

Creates a new HeaderDeserializer which returns None when the bytes are null, and otherwise returns the result of this HeaderDeserializer wrapped in Some.

final def option: HeaderDeserializer[Option[A]]

Creates a new HeaderDeserializer which returns None when the bytes are null, and otherwise returns the result of this HeaderDeserializer wrapped in Some.

Creates a new HeaderDeserializer which returns None when the bytes are null, and otherwise returns the result of this HeaderDeserializer wrapped in Some.

final def product[B](that: HeaderDeserializer[B]): HeaderDeserializer[(A, B)]
Implicitly added by option

Creates a new HeaderDeserializer which deserializes both using this HeaderDeserializer and that HeaderDeserializer, and returns both results in a tuple.

Creates a new HeaderDeserializer which deserializes both using this HeaderDeserializer and that HeaderDeserializer, and returns both results in a tuple.

final def product[B](that: HeaderDeserializer[B]): HeaderDeserializer[(A, B)]

Creates a new HeaderDeserializer which deserializes both using this HeaderDeserializer and that HeaderDeserializer, and returns both results in a tuple.

Creates a new HeaderDeserializer which deserializes both using this HeaderDeserializer and that HeaderDeserializer, and returns both results in a tuple.