Class RoleChangeNotifier
java.lang.Object
org.apache.pekko.actor.AbstractActor
org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
org.opendaylight.controller.cluster.notifications.RoleChangeNotifier
- All Implemented Interfaces:
AutoCloseable,Actor,ExecuteInSelfActor
The RoleChangeNotifier is responsible for receiving Raft role and leader state change messages and notifying
the listeners (within the same node), which are registered with it.
The RoleChangeNotifier is instantiated by the Shard and injected into the RaftActor.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pekko.actor.AbstractActor
AbstractActor.ActorContext, AbstractActor.ReceiveNested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$ -
Field Summary
Fields inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
LOG -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
createReceive, executeInSelf, getContext, ignoreMessage, isValidSender, unknownMessageMethods inherited from class org.apache.pekko.actor.AbstractActor
context, emptyBehavior, getSelf, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, postStop, preRestart, preRestart, receive, receiveBuilder, self, supervisorStrategyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.actor.Actor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, sender, unhandled
-
Constructor Details
-
RoleChangeNotifier
-
-
Method Details
-
getProps
-
getSender
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getSenderin classAbstractActor
-
preStart
- Specified by:
preStartin interfaceActor- Overrides:
preStartin classAbstractActor- Throws:
Exception
-
handleReceive
Description copied from class:AbstractUntypedActorReceive and handle an incoming message. If the implementation does not handle this particular message, it should callAbstractUntypedActor.ignoreMessage(Object)orAbstractUntypedActor.unknownMessage(Object).- Specified by:
handleReceivein classAbstractUntypedActor- Parameters:
message- the incoming message
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-