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

net.ravendb.client.documents.commands.batches.ReplicationBatchOptions Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
package net.ravendb.client.documents.commands.batches;

import java.time.Duration;

public class ReplicationBatchOptions {

    private boolean waitForReplicas;
    private int numberOfReplicasToWaitFor;
    private Duration waitForReplicasTimeout;
    private boolean majority;
    private boolean throwOnTimeoutInWaitForReplicas = true;

    public boolean isWaitForReplicas() {
        return waitForReplicas;
    }

    public void setWaitForReplicas(boolean waitForReplicas) {
        this.waitForReplicas = waitForReplicas;
    }

    public int getNumberOfReplicasToWaitFor() {
        return numberOfReplicasToWaitFor;
    }

    public void setNumberOfReplicasToWaitFor(int numberOfReplicasToWaitFor) {
        this.numberOfReplicasToWaitFor = numberOfReplicasToWaitFor;
    }

    public Duration getWaitForReplicasTimeout() {
        return waitForReplicasTimeout;
    }

    public void setWaitForReplicasTimeout(Duration waitForReplicasTimeout) {
        this.waitForReplicasTimeout = waitForReplicasTimeout;
    }

    public boolean isMajority() {
        return majority;
    }

    public void setMajority(boolean majority) {
        this.majority = majority;
    }

    public boolean isThrowOnTimeoutInWaitForReplicas() {
        return throwOnTimeoutInWaitForReplicas;
    }

    public void setThrowOnTimeoutInWaitForReplicas(boolean throwOnTimeoutInWaitForReplicas) {
        this.throwOnTimeoutInWaitForReplicas = throwOnTimeoutInWaitForReplicas;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy