
io.zeebe.redis.exporter.EventQueue Maven / Gradle / Ivy
package io.zeebe.redis.exporter;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.apache.commons.lang3.tuple.ImmutablePair;
public class EventQueue {
private final ConcurrentLinkedQueue> queue =
new ConcurrentLinkedQueue<>();
public void addEvent(ImmutablePair event) {
queue.add(event);
}
public ImmutablePair getNextEvent() {
return queue.poll();
}
public boolean isEmpty() {
return queue.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy