X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FElectionTerm.java;h=61aafef51354e88ab678dcfeb4f43970e308e636;hp=ff79004bcebdcaea3ff541951c3a5a170e5e74ce;hb=HEAD;hpb=c9943f5bc72d4cde9356d3bd4cf73d36f4b2f754 diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ElectionTerm.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ElectionTerm.java index ff79004bce..61aafef513 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ElectionTerm.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ElectionTerm.java @@ -5,16 +5,17 @@ * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ - package org.opendaylight.controller.cluster.raft; -import javax.annotation.Nullable; +import org.eclipse.jdt.annotation.Nullable; /** * ElectionTerm contains information about a RaftActors election term. + * *

* This information includes the last known current term of the RaftActor * and which candidate was voted for by the RaftActor in that term. + * *

* This class ensures that election term information is persisted. */ @@ -31,8 +32,7 @@ public interface ElectionTerm { * * @return candidate id that received the vote or null if no candidate was voted for. */ - @Nullable - String getVotedFor(); + @Nullable String getVotedFor(); /** * This method updates the in-memory election term state. This method should be called when recovering election