GenericSerializer

sealed abstract class GenericSerializer[-T <: KeyOrValue, F[_], A]
Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def contramap[B](f: B => A): GenericSerializer[T, F, B]
Implicitly added by option

Creates a new Serializer which applies the specified function f on a value of type B, and then serializes the result with this Serializer.

Creates a new Serializer which applies the specified function f on a value of type B, and then serializes the result with this Serializer.

def contramap[B](f: B => A): GenericSerializer[T, F, B]

Creates a new Serializer which applies the specified function f on a value of type B, and then serializes the result with this Serializer.

Creates a new Serializer which applies the specified function f on a value of type B, and then serializes the result with this Serializer.

def mapBytes(f: Array[Byte] => Array[Byte]): GenericSerializer[T, F, A]
Implicitly added by option

Creates a new Serializer which applies the specified function f on the output bytes of this Serializer.

Creates a new Serializer which applies the specified function f on the output bytes of this Serializer.

def mapBytes(f: Array[Byte] => Array[Byte]): GenericSerializer[T, F, A]

Creates a new Serializer which applies the specified function f on the output bytes of this Serializer.

Creates a new Serializer which applies the specified function f on the output bytes of this Serializer.

def option: GenericSerializer[T, F, Option[A]]
Implicitly added by option

Creates a new Serializer which serializes Some values using this Serializer, and serializes None as null.

Creates a new Serializer which serializes Some values using this Serializer, and serializes None as null.

def option: GenericSerializer[T, F, Option[A]]

Creates a new Serializer which serializes Some values using this Serializer, and serializes None as null.

Creates a new Serializer which serializes Some values using this Serializer, and serializes None as null.

def serialize(topic: String, headers: Headers, a: A): F[Array[Byte]]
Implicitly added by option

Attempts to serialize the specified value of type A into bytes. The Kafka topic name, to which the serialized bytes are going to be sent, and record headers are available.

Attempts to serialize the specified value of type A into bytes. The Kafka topic name, to which the serialized bytes are going to be sent, and record headers are available.

def serialize(topic: String, headers: Headers, a: A): F[Array[Byte]]

Attempts to serialize the specified value of type A into bytes. The Kafka topic name, to which the serialized bytes are going to be sent, and record headers are available.

Attempts to serialize the specified value of type A into bytes. The Kafka topic name, to which the serialized bytes are going to be sent, and record headers are available.

def suspend: Serializer[F, A]
Implicitly added by option

Creates a new Serializer which suspends serialization, capturing any impure behaviours of this Serializer.

Creates a new Serializer which suspends serialization, capturing any impure behaviours of this Serializer.

def suspend: Serializer[F, A]

Creates a new Serializer which suspends serialization, capturing any impure behaviours of this Serializer.

Creates a new Serializer which suspends serialization, capturing any impure behaviours of this Serializer.