Class RoleChangeListenerActor

  • All Implemented Interfaces:
    akka.actor.Actor, org.opendaylight.controller.cluster.common.actor.ExecuteInSelfActor

    public final class RoleChangeListenerActor
    extends org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
    Proxy actor which acts as a facade for user-provided LeaderLocationListener. It subscribes for LeaderStateChanged notifications in its pre start hook and translates them to LeaderLocationListener.onLeaderLocationChanged(LeaderLocation) events.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class akka.actor.AbstractActor

        akka.actor.AbstractActor.ActorContext, akka.actor.AbstractActor.Receive
      • Nested classes/interfaces inherited from interface akka.actor.Actor

        akka.actor.Actor.emptyBehavior$, akka.actor.Actor.ignoringBehavior$
    • Field Summary

      • Fields inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor

        LOG
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void handleReceive​(Object message)  
      void preStart()  
      static akka.actor.Props props​(akka.actor.ActorRef roleChangeNotifier, org.opendaylight.controller.cluster.dom.api.LeaderLocationListener listener)  
      • Methods inherited from class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor

        createReceive, executeInSelf, ignoreMessage, isValidSender, unknownMessage
      • Methods inherited from class akka.actor.AbstractActor

        akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, emptyBehavior, getContext, getSelf, getSender, postRestart, postStop, preRestart, preRestart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandled
    • Method Detail

      • preStart

        public void preStart()
                      throws Exception
        Specified by:
        preStart in interface akka.actor.Actor
        Overrides:
        preStart in class akka.actor.AbstractActor
        Throws:
        Exception
      • handleReceive

        protected void handleReceive​(Object message)
        Specified by:
        handleReceive in class org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
      • props

        public static akka.actor.Props props​(akka.actor.ActorRef roleChangeNotifier,
                                             org.opendaylight.controller.cluster.dom.api.LeaderLocationListener listener)