Class RoleChangeNotification

  • All Implemented Interfaces:
    Serializable

    public class RoleChangeNotification
    extends Object
    implements 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.
    See Also:
    Serialized Form
    • Constructor Detail

      • RoleChangeNotification

        public RoleChangeNotification​(String memberId,
                                      String oldRole,
                                      String newRole)
    • Method Detail

      • getMemberId

        public String getMemberId()
      • getOldRole

        public String getOldRole()
      • getNewRole

        public String getNewRole()