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);
}
}