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

com.redis.spring.batch.reader.KeyComparison Maven / Gradle / Ivy

package com.redis.spring.batch.reader;

import com.redis.spring.batch.common.KeyValue;

public class KeyComparison {

	public enum Status {
		OK, // No difference
		MISSING, // Key missing in target database
		TYPE, // Type mismatch
		TTL, // TTL mismatch
		VALUE // Value mismatch
	}

	private KeyValue source;
	private KeyValue target;
	private Status status;

	public KeyValue getSource() {
		return source;
	}

	public void setSource(KeyValue source) {
		this.source = source;
	}

	public KeyValue getTarget() {
		return target;
	}

	public void setTarget(KeyValue target) {
		this.target = target;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "KeyComparison [source=" + source + ", target=" + target + ", status=" + status + "]";
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy