package net.swisstech.arangodb.model.wal;

/**
 * arangodb specific response headers for calling /dump or /logger-follow. this allows to pace the client, and indicates wheter or not one should re-check for
 * more data immediately.
 */
public class WalHeaders {

	private Boolean replicationActive;
	private String replicationLastincluded;
	private String replicationLasttick;
	private Boolean replicationCheckmore;

	public Boolean getReplicationActive() {
		return replicationActive;
	}

	public void setReplicationActive(Boolean replicationActive) {
		this.replicationActive = replicationActive;
	}

	public String getReplicationLastincluded() {
		return replicationLastincluded;
	}

	public void setReplicationLastincluded(String replicationLastincluded) {
		this.replicationLastincluded = replicationLastincluded;
	}

	public String getReplicationLasttick() {
		return replicationLasttick;
	}

	public void setReplicationLasttick(String replicationLasttick) {
		this.replicationLasttick = replicationLasttick;
	}

	public Boolean getReplicationCheckmore() {
		return replicationCheckmore;
	}

	public void setReplicationCheckmore(Boolean replicationCheckmore) {
		this.replicationCheckmore = replicationCheckmore;
	}
}

@@ -1214,11 +1214,229 @@
 more;%0A%09%7D
+%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return String.format(%22active: %25s / lastIncluded: %25s / lastTick: %25s / checkMore: %25s%22, replicationActive, replicationLastincluded, replicationLasttick, replicationCheckmore);%0A%09%7D
 %0A%7D%0A

add nice tostring for headers / testlogging