HeaderDeserializer

class Object
trait Matchable
class Any

Type members

Types

Alias for HeaderDeserializer[Either[Throwable, A]].

Alias for HeaderDeserializer[Either[Throwable, A]].

Source:
HeaderDeserializer.scala

Value members

Concrete methods

def apply[A](implicit deserializer: HeaderDeserializer[A]): HeaderDeserializer[A]
def attempt[A](implicit deserializer: Attempt[A]): Attempt[A]
def const[A](a: A): HeaderDeserializer[A]

Creates a new HeaderDeserializer which deserializes all bytes to the specified value of type A.

Creates a new HeaderDeserializer which deserializes all bytes to the specified value of type A.

Source:
HeaderDeserializer.scala
def delegate[A](deserializer: Deserializer[A]): HeaderDeserializer[A]

Creates a new HeaderDeserializer which delegates deserialization to the specified Kafka Deserializer. Please note that the close and configure functions won't be called for the delegate. Also, the topic is an empty String and no headers are provided.

Creates a new HeaderDeserializer which delegates deserialization to the specified Kafka Deserializer. Please note that the close and configure functions won't be called for the delegate. Also, the topic is an empty String and no headers are provided.

Source:
HeaderDeserializer.scala
def instance[A](f: Array[Byte] => A): HeaderDeserializer[A]

Creates a new HeaderDeserializer from the specified function.

Creates a new HeaderDeserializer from the specified function.

Source:
HeaderDeserializer.scala

Creates a new HeaderDeserializer which deserializes String values using the specified Charset. Note that the default String deserializer uses UTF-8.

Creates a new HeaderDeserializer which deserializes String values using the specified Charset. Note that the default String deserializer uses UTF-8.

Source:
HeaderDeserializer.scala
def uuid(charset: Charset): Attempt[UUID]

Creates a new HeaderDeserializer which deserializes String values using the specified Charset as UUIDs. Note that the default UUID deserializer uses UTF-8.

Creates a new HeaderDeserializer which deserializes String values using the specified Charset as UUIDs. Note that the default UUID deserializer uses UTF-8.

Source:
HeaderDeserializer.scala

Implicits

Implicits

The identity HeaderDeserializer, which does not perform any kind of deserialization, simply using the input bytes as the output.

The identity HeaderDeserializer, which does not perform any kind of deserialization, simply using the input bytes as the output.

Source:
HeaderDeserializer.scala
implicit def option[A](implicit deserializer: HeaderDeserializer[A]): HeaderDeserializer[Option[A]]

The option HeaderDeserializer returns None when the bytes are null, and otherwise deserializes using the deserializer for the type A, wrapping the result in Some.

The option HeaderDeserializer returns None when the bytes are null, and otherwise deserializes using the deserializer for the type A, wrapping the result in Some.

Source:
HeaderDeserializer.scala