org.zalando.nakadiproducer.eventlog.CompactionKeyExtractors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nakadi-producer Show documentation
Show all versions of nakadi-producer Show documentation
Reliable transactional Nakadi event producer
package org.zalando.nakadiproducer.eventlog;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Optional;
import java.util.function.Function;
/**
* This class contains implementations of {@link CompactionKeyExtractor} used by the factory methods in that interface.
*/
final class CompactionKeyExtractors {
@AllArgsConstructor(access = AccessLevel.PACKAGE)
static class SimpleCompactionKeyExtractor implements CompactionKeyExtractor {
@Getter
private final String eventType;
private final Function