
com.github.panhongan.util.kafka.AbstractMessageProcessor Maven / Gradle / Ivy
package com.github.panhongan.util.kafka;
import java.util.List;
import com.github.panhongan.util.control.Lifecycleable;
public abstract class AbstractMessageProcessor implements Lifecycleable {
private String name = null;
public AbstractMessageProcessor() {
}
public void setName(String name) {
this.name = name;
}
public AbstractMessageProcessor(String name) {
this.name = name;
}
public String getName() {
return name;
}
public abstract Object processMessage(String topic, int partition_id, String message);
public abstract Object processMessage(String topic, int partition_id, List message);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy