* Invoked by candidates to gather votes (ยง5.2).
*/
public final class RequestVote extends AbstractRaftRPC {
+ @java.io.Serial
private static final long serialVersionUID = -6967509186297108657L;
// candidate requesting vote
public Proxy() {
}
- Proxy(final RequestVote requestVote) {
- this.requestVote = requestVote;
- }
-
@Override
- public void writeExternal(final ObjectOutput out) throws IOException {
- out.writeLong(requestVote.getTerm());
- out.writeObject(requestVote.candidateId);
- out.writeLong(requestVote.lastLogIndex);
- out.writeLong(requestVote.lastLogTerm);
+ public void writeExternal(final ObjectOutput out) {
+ throw new UnsupportedOperationException();
}
@Override