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

org.jgroups.protocols.raft.VoteResponse Maven / Gradle / Ivy

There is a newer version: 1.0.14.Final
Show newest version
package org.jgroups.protocols.raft;

import java.io.DataInput;
import java.io.DataOutput;

/**
 * @author Bela Ban
 * @since  0.1
 */
public class VoteResponse extends RaftHeader {
    protected boolean result;

    public VoteResponse() {}
    public VoteResponse(int term, boolean result) {super(term); this.result=result;}


    public int size() {
        return super.size();
    }

    public void readFrom(DataInput in) throws Exception {
        super.readFrom(in);
    }

    public void writeTo(DataOutput out) throws Exception {
        super.writeTo(out);
    }

    public String toString() {
        return super.toString() + ", result=" + result;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy