From 8a8866d4484fb282702550e299c9c0ec2beadf78 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Mon, 31 Jul 2017 16:08:22 +0200 Subject: [PATCH 1/1] BUG-8898: prioritize InternalCommand InternalCommand requests should be processed as soon as possible, and since we are already using ControlAwareMailbox, this is as simple as marking InternalCommand as a ControlMessage. Change-Id: Ic6025f4254da47801676c0c474d03e18abbf8f50 Signed-off-by: Robert Varga (cherry picked from commit 2ac32ea2c4f57993a1dc49ef8ce380cb03acc822) --- .../controller/cluster/access/client/InternalCommand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/InternalCommand.java b/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/InternalCommand.java index f34a475168..c841f1350a 100644 --- a/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/InternalCommand.java +++ b/opendaylight/md-sal/cds-access-client/src/main/java/org/opendaylight/controller/cluster/access/client/InternalCommand.java @@ -7,17 +7,18 @@ */ package org.opendaylight.controller.cluster.access.client; +import akka.dispatch.ControlMessage; import javax.annotation.Nonnull; import javax.annotation.Nullable; /** * This interface is used to pass the unit of work via the actors mailbox. The command can alter behavior of the actor - * by returning a new behavior. + * by returning a new behavior. This work will be prioritized before other messages. * * @author Robert Varga */ @FunctionalInterface -public interface InternalCommand { +public interface InternalCommand extends ControlMessage { /** * Run command actions. * -- 2.36.6