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

io.descoped.dc.api.content.ContentStore Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package io.descoped.dc.api.content;

import java.util.Map;
import java.util.Set;

public interface ContentStore extends AutoCloseable {

    void lock(String topic);

    void unlock(String topic);

    ContentStream contentStream();

    String lastPosition(String topic);

    Set contentKeys(String topic, String position);

    void addPaginationDocument(String topic, String position, String contentKey, byte[] content, HttpRequestInfo httpRequestInfo);

    void bufferPaginationEntryDocument(String topic, String position, String contentKey, byte[] content, HttpRequestInfo httpRequestInfo, Map state);

    void bufferDocument(String topic, String position, String contentKey, byte[] content, HttpRequestInfo httpRequestInfo);

    void publish(String topic, String... position);

    HealthContentStreamMonitor monitor();

    void closeTopic(String topic);

    boolean isClosed();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy