object HeaderSerializer
- Source
- HeaderSerializer.scala
- Alphabetic
- By Inheritance
- HeaderSerializer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def apply[A](implicit serializer: HeaderSerializer[A]): HeaderSerializer[A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asNull[A]: HeaderSerializer[A]
Creates a new HeaderSerializer which serializes all values of type
A
asnull
. - def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def const[A](bytes: Array[Byte]): HeaderSerializer[A]
Creates a new HeaderSerializer which serializes all values of type
A
to the specifiedbytes
. - implicit val contravariant: Contravariant[HeaderSerializer]
- def delegate[A](serializer: KafkaSerializer[A]): HeaderSerializer[A]
Creates a new HeaderSerializer which delegates serialization to the specified Kafka
Serializer
.Creates a new HeaderSerializer which delegates serialization to the specified Kafka
Serializer
. Note that theclose
andconfigure
functions won't be called for the delegate. Also, the topic is an emptyString
and no headers are provided. - implicit val double: HeaderSerializer[Double]
- def empty[A]: HeaderSerializer[A]
Creates a new HeaderSerializer which serializes all values of type
A
as the emptyArray[Byte]
. - 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])
- implicit val float: HeaderSerializer[Float]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- implicit val identity: HeaderSerializer[Array[Byte]]
The identity HeaderSerializer, which does not perform serialization, simply using the input bytes as the output.
- def instance[A](f: (A) => Array[Byte]): HeaderSerializer[A]
Creates a new HeaderSerializer from the specified function.
- implicit val int: HeaderSerializer[Int]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit val long: HeaderSerializer[Long]
- 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()
- implicit def option[A](implicit serializer: HeaderSerializer[A]): HeaderSerializer[Option[A]]
The option HeaderSerializer serializes
None
asnull
, and serializesSome
values using the serializer for typeA
. - implicit val short: HeaderSerializer[Short]
- def string(charset: Charset): HeaderSerializer[String]
Creates a new HeaderSerializer which serializes
String
values using the specifiedCharset
.Creates a new HeaderSerializer which serializes
String
values using the specifiedCharset
. Note that the defaultString
serializer usesUTF-8
. - implicit val string: HeaderSerializer[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit val unit: HeaderSerializer[Unit]
- def uuid(charset: Charset): HeaderSerializer[UUID]
Creates a new HeaderSerializer which serializes
UUID
values asString
s with the specifiedCharset
.Creates a new HeaderSerializer which serializes
UUID
values asString
s with the specifiedCharset
. Note that the defaultUUID
serializer usesUTF-8.
- implicit val uuid: HeaderSerializer[UUID]
- 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()