* Message class to persist election term information.
*/
public class UpdateElectionTerm implements Serializable {
+ @Deprecated(since = "7.0.0", forRemoval = true)
private static final class Proxy implements Externalizable {
+ @java.io.Serial
private static final long serialVersionUID = 1L;
private UpdateElectionTerm updateElectionTerm;
updateElectionTerm = new UpdateElectionTerm(in.readLong(), (String) in.readObject());
}
+ @java.io.Serial
private Object readResolve() {
return updateElectionTerm;
}
}
+ @java.io.Serial
private static final long serialVersionUID = 1L;
private final long currentTerm;
return votedFor;
}
+ @java.io.Serial
private Object writeReplace() {
- return new Proxy(this);
+ return new UT(this);
}
@Override