All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.danielwegener.logback.kafka.encoding.KafkaMessageEncoderBase Maven / Gradle / Ivy

There is a newer version: 0.2.0-RC2
Show newest version
package com.github.danielwegener.logback.kafka.encoding;

import ch.qos.logback.core.spi.ContextAwareBase;
import ch.qos.logback.core.spi.LifeCycle;

/**
 * A base class for {@link KafkaMessageEncoder}'s that are {@link ContextAwareBase} and have a {@link LifeCycle}
 * @since 0.0.1
 */
public abstract class KafkaMessageEncoderBase extends ContextAwareBase implements KafkaMessageEncoder, LifeCycle {

    private boolean started = false;

    @Override
    public void start() {
        started = true;
    }

    @Override
    public void stop() {
        started = false;
    }

    @Override
    public boolean isStarted() {
        return started;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy