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

org.opensearch.migrations.replay.TupleParserChainConsumer Maven / Gradle / Ivy

package org.opensearch.migrations.replay;

import java.util.function.BiConsumer;
import java.util.function.Consumer;

import lombok.NonNull;

public class TupleParserChainConsumer implements Consumer {
    private final BiConsumer innerConsumer;

    public TupleParserChainConsumer(@NonNull BiConsumer innerConsumer) {
        this.innerConsumer = innerConsumer;
    }

    @Override
    public void accept(SourceTargetCaptureTuple tuple) {
        var parsedMsgs = new ParsedHttpMessagesAsDicts(tuple);
        innerConsumer.accept(tuple, parsedMsgs);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy