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

io.descoped.rawdata.discard.DiscardingRawdataMetadataClient Maven / Gradle / Ivy

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

import io.descoped.rawdata.api.RawdataMetadataClient;

import java.util.Collections;
import java.util.Set;

public class DiscardingRawdataMetadataClient implements RawdataMetadataClient {

    final String topic;

    public DiscardingRawdataMetadataClient(String topic) {
        this.topic = topic;
    }

    @Override
    public String topic() {
        return topic;
    }

    @Override
    public Set keys() {
        return Collections.emptySet();
    }

    @Override
    public byte[] get(String key) {
        return null;
    }

    @Override
    public DiscardingRawdataMetadataClient put(String key, byte[] value) {
        return this;
    }

    @Override
    public DiscardingRawdataMetadataClient remove(String key) {
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy