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
,org.apache.pekko.actor.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
org.apache.pekko.actor.AbstractActor.ActorContext, org.apache.pekko.actor.AbstractActor.Receive
Nested classes/interfaces inherited from interface org.apache.pekko.actor.Actor
org.apache.pekko.actor.Actor.emptyBehavior$, org.apache.pekko.actor.Actor.ignoringBehavior$
-
Field Summary
Fields inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
LOG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static org.apache.pekko.actor.Props
final org.apache.pekko.actor.ActorRef
Deprecated, for removal: This API element is subject to removal in a future version.protected void
handleReceive
(Object message) Receive and handle an incoming message.void
preStart()
Methods inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
createReceive, executeInSelf, getContext, ignoreMessage, isValidSender, unknownMessage
Methods inherited from class org.apache.pekko.actor.AbstractActor
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, 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, sender, supervisorStrategy, unhandled
-
Constructor Details
-
RoleChangeNotifier
-
-
Method Details
-
getProps
-
getSender
@Deprecated(since="11.0.0", forRemoval=true) public final org.apache.pekko.actor.ActorRef getSender()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
getSender
in classorg.apache.pekko.actor.AbstractActor
-
preStart
- Specified by:
preStart
in interfaceorg.apache.pekko.actor.Actor
- Overrides:
preStart
in classorg.apache.pekko.actor.AbstractActor
- Throws:
Exception
-
handleReceive
Description copied from class:AbstractUntypedActor
Receive and handle an incoming message. If the implementation does not handle this particular message, it should callAbstractUntypedActor.ignoreMessage(Object)
orAbstractUntypedActor.unknownMessage(Object)
.- Specified by:
handleReceive
in classAbstractUntypedActor
- Parameters:
message
- the incoming message
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-