io.deephaven.kafka.protobuf.Protocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-extensions-kafka Show documentation
Show all versions of deephaven-extensions-kafka Show documentation
Kafka: Integrating Engine tables with Kafka
package io.deephaven.kafka.protobuf;
/**
* The serialization / deserialization protocol.
*
* @see #serdes()
* @see #raw()
*/
public interface Protocol {
/**
* The Kafka Protobuf serdes protocol. The payload's first byte is the serdes magic byte, the next 4-bytes are the
* schema ID, the next variable-sized bytes are the message indexes, followed by the normal binary encoding of the
* Protobuf data.
*
* @return the Kafka Protobuf serdes protocol
* @see Kafka
* Protobuf serdes
* @see wire-format
* @see Protobuf encoding
*/
static Protocol serdes() {
return Impl.SERDES;
}
/**
* The raw Protobuf protocol. The full payload is the normal binary encoding of the Protobuf data.
*
* @return the raw Protobuf protocol
* @see Protobuf encoding
*/
static Protocol raw() {
return Impl.RAW;
}
enum Impl implements Protocol {
RAW, SERDES;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy