+public sealed class UpdateElectionTerm implements Serializable {
+ @Deprecated(since = "7.0.0", forRemoval = true)
+ private static final class Legacy extends UpdateElectionTerm implements LegacySerializable {
+ @java.io.Serial
+ private static final long serialVersionUID = 1L;
+
+ Legacy(final long currentTerm, final String votedFor) {
+ super(currentTerm, votedFor);
+ }
+ }
+
+ @Deprecated(since = "7.0.0", forRemoval = true)