public interface Header
Modifier and Type | Method and Description |
---|---|
String |
key()
The header's key, which is not necessarily unique within the set of headers on a Kafka message.
|
Header |
rename(String key)
Return a new
Header object that has the same schema and value but with the supplied key. |
Schema |
schema()
Return the
Schema associated with this header, if there is one. |
Object |
value()
Get the header's value as deserialized by Connect's header converter.
|
Header |
with(Schema schema,
Object value)
Return a new
Header object that has the same key but with the supplied value. |
String key()
Schema schema()
Schema
associated with this header, if there is one. Not all headers will have schemas.Object value()
Header with(Schema schema, Object value)
Header
object that has the same key but with the supplied value.schema
- the schema for the new value; may be nullvalue
- the new valueHeader
; never null