io.descoped.dc.api.content.ContentStreamConsumer Maven / Gradle / Ivy
package io.descoped.dc.api.content;
import java.util.concurrent.TimeUnit;
public interface ContentStreamConsumer extends AutoCloseable {
String topic();
ContentStreamBuffer receive(int timeout, TimeUnit unit) throws InterruptedException, ClosedContentStreamException;
void seek(long timestamp);
boolean isClosed();
}