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