HeaderDeserializer

fs2.kafka.HeaderDeserializer
See theHeaderDeserializer companion object
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.

Attributes

Companion
object
Source
HeaderDeserializer.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala

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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala

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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala
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.

Attributes

Source
HeaderDeserializer.scala