com.redislabs.riot.redis.ReplicationOptions Maven / Gradle / Ivy
The newest version!
package com.redislabs.riot.redis;
import lombok.Data;
import org.springframework.batch.item.redis.support.KeyValueItemReader;
import picocli.CommandLine;
@Data
public class ReplicationOptions {
@CommandLine.Option(names = "--mode", description = "Replication mode: ${COMPLETION-CANDIDATES} (default: ${DEFAULT-VALUE})", paramLabel = "")
private ReplicationMode mode = ReplicationMode.SNAPSHOT;
@CommandLine.Option(names = "--event-queue", description = "Capacity of the keyspace notification event queue (default: ${DEFAULT-VALUE})", paramLabel = "")
private int notificationQueueCapacity = KeyValueItemReader.LiveKeyValueItemReaderBuilder.DEFAULT_QUEUE_CAPACITY;
@CommandLine.Option(names = "--no-verify", description = "Verify target against source dataset after replication. True by default", negatable = true)
private boolean verify = true;
}