X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fnotifications%2FRoleChangeNotification.java;h=370ce1f3bbf00d9731207b28a77e36981bf03450;hb=a60f577d66eb510232b0e2ccca73d9e7a81af0c9;hp=44b8bf4a532771b1f47533f323445fb38c97ee02;hpb=2d6a1896466a1802f16034cda45727cbc0c5176d;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/RoleChangeNotification.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/RoleChangeNotification.java index 44b8bf4a53..370ce1f3bb 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/RoleChangeNotification.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/notifications/RoleChangeNotification.java @@ -11,17 +11,15 @@ package org.opendaylight.controller.cluster.notifications; import java.io.Serializable; /** - * Notification message representing a Role change of a cluster member - * - * Roles generally are Leader, Follower and Candidate. But can be based on the consensus strategy/implementation - * - * The Listener could be in a separate ActorSystem and hence this message needs to be Serializable + * Notification message representing a Role change of a cluster member. + * Roles generally are Leader, Follower and Candidate. But can be based on the consensus strategy/implementation. + * The Listener could be in a separate ActorSystem and hence this message needs to be Serializable. */ public class RoleChangeNotification implements Serializable { private static final long serialVersionUID = -2873869509490117116L; - private String memberId; - private String oldRole; - private String newRole; + private final String memberId; + private final String oldRole; + private final String newRole; public RoleChangeNotification(String memberId, String oldRole, String newRole) { this.memberId = memberId;