X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FLeaderLocalDelegateFactory.java;h=b6fb127714f07b8529de25bc1760dd7c16532f91;hb=5dbaf1259ead1904536db204bbc742a3359c1eb1;hp=d33cebbebc2f7680dff2097f8b3ab3745f861c26;hpb=59e84273be97b1115fb3fb0f06364b7491a40385;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java index d33cebbebc..b6fb127714 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/LeaderLocalDelegateFactory.java @@ -17,10 +17,10 @@ import com.google.common.base.Preconditions; * Base class for factories instantiating delegates which are local to the * shard leader. * - * delegate type - * message type + * @param delegate type + * @param message type */ -abstract class LeaderLocalDelegateFactory extends DelegateFactory { +abstract class LeaderLocalDelegateFactory { private final Shard shard; protected LeaderLocalDelegateFactory(final Shard shard) { @@ -58,9 +58,10 @@ abstract class LeaderLocalDelegateFactory extends DelegateFactory { /** * Invoked whenever the local shard's leadership role changes. * - * @param isLeader true if the shard has become leader, false if it has - * become a follower. + * @param isLeader true if the shard has become leader, false if it has become a follower. + * @param hasLeader true if the shard knows about leader ID */ - abstract void onLeadershipChange(boolean isLeader); - abstract void onMessage(M message, boolean isLeader); + abstract void onLeadershipChange(boolean isLeader, boolean hasLeader); + + abstract void onMessage(M message, boolean isLeader, boolean hasLeader); }