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=d7c9a8ccfcb57f005490a226803d094289997ef9;hp=de2733fc86de37eec8c3207dfe1b8d0d1c408f28;hpb=47ad11bd477096d9ffcf568e071ba68baabdbe6e;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 de2733fc86..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,16 +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 String memberId; - private String oldRole; - private String newRole; + private static final long serialVersionUID = -2873869509490117116L; + private final String memberId; + private final String oldRole; + private final String newRole; public RoleChangeNotification(String memberId, String oldRole, String newRole) { this.memberId = memberId;