io.keyko.monitoring.examples.celo.CeloSerdes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web3-event-streamer Show documentation
Show all versions of web3-event-streamer Show documentation
Kafka stream processors that enrich data generated with web3-monitoring agent
package io.keyko.monitoring.examples.celo;
import io.confluent.kafka.streams.serdes.avro.SpecificAvroSerde;
import io.keyko.monitoring.schemas.AlertRecord;
import io.keyko.monitoring.serde.Web3MonitoringSerdes;
public class CeloSerdes extends Web3MonitoringSerdes {
// Web3MonitoringSerdes actually has an alertSerde but we use this as an example about how to add new serdes
private final static SpecificAvroSerde alertAvroSerde = new SpecificAvroSerde<>();
public static SpecificAvroSerde getAlertAvroSerde() {
return alertAvroSerde;
}
public static void configureAllSerdes(String schemaRegistryUrl) {
// we call the configureSerdes of Web3MonitoringSerdes
configureSerdes(schemaRegistryUrl);
//we configure the especific class
configureSerde(alertAvroSerde);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy