com.github.lontime.extkafka.configuration.ConsumerOption Maven / Gradle / Ivy
package com.github.lontime.extkafka.configuration;
import java.time.Duration;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.github.lontime.extkafka.common.CommitKind;
import lombok.Getter;
import lombok.Setter;
/**
* ConsumerOption.
* @author lontime
* @since 1.0
*/
@Getter
@Setter
public class ConsumerOption {
/**
* name.
*/
private String name;
/**
* topics.
*/
private List topics;
/**
* enableAutoCommit.
*/
private Boolean enableAutoCommit = true;
/**
* autoCommitInterval.
*/
private Duration autoCommitInterval;
/**
* pullTimeout.
*/
private Duration pullTimeout = Duration.ofMillis(500);
/**
* commitKind.
*/
private CommitKind commitKind = CommitKind.SYNC;
/**
* syncCommitTimeout.
*/
private Duration syncCommitTimeout;
/**
* interval.
*/
private Duration interval = Duration.ofSeconds(1);
/**
* interval.
*/
private Duration intervalMax = Duration.ofMinutes(30);
/**
* interval.
*/
private Duration closeTimeout = Duration.ofMinutes(5);
/**
* warmup.
*/
private Duration warmup = Duration.ofSeconds(3);
/**
* props.
*/
private Map specs = new HashMap<>();
/**
* groupId.
*/
private String groupId;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy