Uses of Enum Class
org.jgroups.raft.JGroupsRaftRole
Packages that use JGroupsRaftRole
-
Uses of JGroupsRaftRole in org.jgroups.raft
Subclasses with type arguments of type JGroupsRaftRole in org.jgroups.raftMethods in org.jgroups.raft that return JGroupsRaftRoleModifier and TypeMethodDescriptionJGroupsRaft.role()The current role of the node in the Raft algorithm.static JGroupsRaftRoleReturns the enum constant of this class with the specified name.static JGroupsRaftRole[]JGroupsRaftRole.values()Returns an array containing the constants of this enum class, in the order they are declared.Method parameters in org.jgroups.raft with type arguments of type JGroupsRaftRoleModifier and TypeMethodDescriptionvoidJGroupsRaft.listenRoleChanges(BiConsumer<JGroupsRaftRole, JGroupsRaftRole> consumer) Registers a listener to be notified when the role of the node changes.voidJGroupsRaft.listenRoleChanges(BiConsumer<JGroupsRaftRole, JGroupsRaftRole> consumer) Registers a listener to be notified when the role of the node changes.voidJGroupsRaft.removeRoleChangeListener(BiConsumer<JGroupsRaftRole, JGroupsRaftRole> consumer) Removes a previously registered listener.voidJGroupsRaft.removeRoleChangeListener(BiConsumer<JGroupsRaftRole, JGroupsRaftRole> consumer) Removes a previously registered listener.