sealed abstract class GenericSerializer[-T <: KeyOrValue, F[_], A] extends AnyRef
- Source
- Serializer.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- GenericSerializer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def contramap[B](f: (B) => A): GenericSerializer[T, F, B]
Creates a new Serializer which applies the specified function
fon a value of typeB, and then serializes the result with this Serializer. - abstract def mapBytes(f: (Array[Byte]) => Array[Byte]): GenericSerializer[T, F, A]
Creates a new Serializer which applies the specified function
fon the output bytes of this Serializer. - abstract def option: GenericSerializer[T, F, Option[A]]
Creates a new Serializer which serializes
Somevalues using this Serializer, and serializesNoneasnull. - abstract def serialize(topic: String, headers: Headers, a: A): F[Array[Byte]]
Attempts to serialize the specified value of type
Ainto bytes.Attempts to serialize the specified value of type
Ainto bytes. The Kafka topic name, to which the serialized bytes are going to be sent, and record headers are available. - abstract def suspend: Serializer[F, A]
Creates a new Serializer which suspends serialization, capturing any impure behaviours of this Serializer.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()