THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Add a new headers length and value (byte[]) to the core message format.
- Create a Header class Interface and implementing class
Code Block public interface Header { String key();
Add a String key field to Header class
- Add a
value field to Header classbyte[]
value(); }
- Create a Headers Interface and implementing class
Add a headers (Header[]) field to Headers class
Add accessor methods on the Headers class - void add(Header) and aCode Block public interface Headers extends Iterable<Header> { boolean add(String key, byte[] value);
)implement Iterable<Header>Collection<byte[]> get(String
key); Set<String> keys(); }
- Add a headers field to ProducerRecord and ConsumerRecord.
- Add accessor methods on the Producer/ConsumerRecord Headers getHeaders()
- Add ProduceRequest/ProduceResponse V4 which uses the new message format.
- Add FetchRequest/FetchResponse V4 which uses the new message format.
- The serialisation of the [String, byte[]] header array will on the wire using a strict format
- Each headers value will be custom serialisable by the interceptors/plugins that use the header.
...