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

org.jgroups.protocols.raft.election.VoteRequest Maven / Gradle / Ivy

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

import org.jgroups.Header;
import org.jgroups.protocols.raft.RaftHeader;

import java.util.function.Supplier;

import static org.jgroups.protocols.raft.election.BaseElection.VOTE_REQ;

/**
 * @author Bela Ban
 * @since  0.1
 */
public class VoteRequest extends RaftHeader {

    public VoteRequest() {}
    public VoteRequest(long term) {
        super(term);
    }

    public short getMagicId() {
        return VOTE_REQ;
    }

    public Supplier create() {
        return VoteRequest::new;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy