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 <robert.varga@pantheon.tech>
(cherry picked from commit
2ac32ea2c4f57993a1dc49ef8ce380cb03acc822)
*/
package org.opendaylight.controller.cluster.access.client;
*/
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
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
*
* @author Robert Varga
*/
@FunctionalInterface
-public interface InternalCommand<T extends BackendInfo> {
+public interface InternalCommand<T extends BackendInfo> extends ControlMessage {
/**
* Run command actions.
*
/**
* Run command actions.
*