pl.allegro.tech.hermes.consumers.consumer.receiver.UninitializedMessageReceiver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-consumers Show documentation
Show all versions of hermes-consumers Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.consumers.consumer.receiver;
import pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset;
import pl.allegro.tech.hermes.consumers.consumer.Message;
import pl.allegro.tech.hermes.consumers.consumer.offset.SubscriptionPartitionOffset;
import java.util.Optional;
import java.util.Set;
public class UninitializedMessageReceiver implements MessageReceiver {
@Override
public Optional next() {
throw new ConsumerNotInitializedException();
}
@Override
public void commit(Set offsets) {
throw new ConsumerNotInitializedException();
}
@Override
public boolean moveOffset(PartitionOffset offset) {
throw new ConsumerNotInitializedException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy