
com.github.danielwegener.logback.kafka.encoding.KafkaMessageEncoder Maven / Gradle / Ivy
package com.github.danielwegener.logback.kafka.encoding;
/**
* An Encoder that is able to take an {@code E} and return a {byte[]}.
* This Encoder should naturally be referential transparent.
* @since 0.0.1
* @param the type of the event.
*/
public interface KafkaMessageEncoder {
/**
* Encodes a loggingEvent into a byte array.
* @param event the loggingEvent to be encoded.
*/
byte[] doEncode(E event);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy