Class AbstractUntypedActor
- java.lang.Object
-
- akka.actor.AbstractActor
-
- org.opendaylight.controller.cluster.common.actor.AbstractUntypedActor
-
- All Implemented Interfaces:
Actor
,ExecuteInSelfActor
- Direct Known Subclasses:
AbstractUntypedActorWithMetering
,DataTreeNotificationListenerRegistrationActor
,OpsManager
,RoleChangeListenerActor
,RoleChangeNotifier
,ShardDataTreeNotificationPublisherActor
public abstract class AbstractUntypedActor extends AbstractActor implements ExecuteInSelfActor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.actor.AbstractActor
AbstractActor.ActorContext, AbstractActor.Receive
-
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractUntypedActor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AbstractActor.Receive
createReceive()
void
executeInSelf(@NonNull Runnable runnable)
Run a Runnable in the context of this actor.protected abstract void
handleReceive(Object message)
Receive and handle an incoming message.protected void
ignoreMessage(Object message)
protected boolean
isValidSender(ActorRef sender)
protected void
unknownMessage(Object message)
-
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, preStart, receive, receiveBuilder, self, sender, supervisorStrategy, unhandled
-
-
-
-
Field Detail
-
LOG
protected final Logger LOG
-
-
Method Detail
-
executeInSelf
public final void executeInSelf(@NonNull Runnable runnable)
Description copied from interface:ExecuteInSelfActor
Run a Runnable in the context of this actor.- Specified by:
executeInSelf
in interfaceExecuteInSelfActor
- Parameters:
runnable
- Runnable to run
-
createReceive
public AbstractActor.Receive createReceive()
- Specified by:
createReceive
in classAbstractActor
-
handleReceive
protected abstract void handleReceive(Object message)
Receive and handle an incoming message. If the implementation does not handle this particular message, it should callignoreMessage(Object)
orunknownMessage(Object)
.- Parameters:
message
- the incoming message
-
ignoreMessage
protected final void ignoreMessage(Object message)
-
unknownMessage
protected final void unknownMessage(Object message)
-
isValidSender
protected boolean isValidSender(ActorRef sender)
-
-