Headers represent an immutable append-only collection
of Headers. To create a new Headers instance, you
can use Headers#apply or Headers#empty and add an
instance of Header using append
.
- Companion:
- object
- Source:
- Headers.scala
Value members
Abstract methods
The Headers as an immutable Java Kafka Headers
instance.
The Headers as an immutable Java Kafka Headers
instance.
- Source:
- Headers.scala
Appends the specified Headers after these headers.
Appends the specified Headers after these headers.
- Source:
- Headers.scala
Returns true
if a header with the specified key
exists; otherwise false
.
Returns true
if a header with the specified key
exists; otherwise false
.
- Source:
- Headers.scala
true
if no Headers are included; otherwise false
.
true
if no Headers are included; otherwise false
.
- Source:
- Headers.scala
Returns the first header with the specified key,
wrapped in Some
, or None
if no such header
exists. The apply function is an alias.
Returns the first header with the specified key,
wrapped in Some
, or None
if no such header
exists. The apply function is an alias.
- Source:
- Headers.scala
Concrete methods
Returns the first header with the specified key,
wrapped in Some
, or None
if no such header
exists. Alias for withKey.
Returns the first header with the specified key,
wrapped in Some
, or None
if no such header
exists. Alias for withKey.
- Source:
- Headers.scala
true
if at least one Header is included; otherwise false
.
true
if at least one Header is included; otherwise false
.
- Source:
- Headers.scala