- Companion:
- class
- Source:
- HeaderSerializer.scala
Value members
Concrete methods
Creates a new HeaderSerializer which
serializes all values of type A
as null
.
Creates a new HeaderSerializer which
serializes all values of type A
as null
.
- Source:
- HeaderSerializer.scala
Creates a new HeaderSerializer which serializes
all values of type A
to the specified bytes
.
Creates a new HeaderSerializer which serializes
all values of type A
to the specified bytes
.
- Source:
- HeaderSerializer.scala
Creates a new HeaderSerializer which delegates serialization
to the specified Kafka Serializer
. 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 HeaderSerializer which delegates serialization
to the specified Kafka Serializer
. 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:
- HeaderSerializer.scala
Creates a new HeaderSerializer which serializes
all values of type A
as the empty Array[Byte]
.
Creates a new HeaderSerializer which serializes
all values of type A
as the empty Array[Byte]
.
- Source:
- HeaderSerializer.scala
Creates a new HeaderSerializer from the specified function.
Creates a new HeaderSerializer from the specified function.
- Source:
- HeaderSerializer.scala
Creates a new HeaderSerializer which serializes String
values using the specified Charset
. Note that the default
String
serializer uses UTF-8
.
Creates a new HeaderSerializer which serializes String
values using the specified Charset
. Note that the default
String
serializer uses UTF-8
.
- Source:
- HeaderSerializer.scala
Creates a new HeaderSerializer which serializes UUID
values
as String
s with the specified Charset
. Note that the default
UUID
serializer uses UTF-8.
Creates a new HeaderSerializer which serializes UUID
values
as String
s with the specified Charset
. Note that the default
UUID
serializer uses UTF-8.
- Source:
- HeaderSerializer.scala
Implicits
Implicits
The identity HeaderSerializer, which does not perform serialization, simply using the input bytes as the output.
The identity HeaderSerializer, which does not perform serialization, simply using the input bytes as the output.
- Source:
- HeaderSerializer.scala
The option HeaderSerializer serializes None
as null
,
and serializes Some
values using the serializer for type A
.
The option HeaderSerializer serializes None
as null
,
and serializes Some
values using the serializer for type A
.
- Source:
- HeaderSerializer.scala