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

io.descoped.rawdata.api.RawdataMetadataClient Maven / Gradle / Ivy

The newest version!
package io.descoped.rawdata.api;

import java.util.Set;

public interface RawdataMetadataClient {

    /**
     * @return the name of the topic from which this metadata-client will read from and write to.
     */
    String topic();

    /**
     * @return an iterable with the keys of all the metadata entries stored for this topic.
     */
    Set keys();

    /**
     * Read value for a given key.
     *
     * @param key the key of the metadata entry.
     * @return the value of the metadata entry.
     */
    byte[] get(String key);

    /**
     * Write metadata value for a given key.
     *
     * @param key   the key of the metadata entry
     * @param value the value of the metadata entry
     * @return this metadata-client.
     */
    RawdataMetadataClient put(String key, byte[] value);

    /**
     * Remove the metadata entry associated with the given key.
     *
     * @param key the key of the metadata entry to remove
     * @return this metadata-client.
     */
    RawdataMetadataClient remove(String key);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy