2 * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.common.actor;
10 import akka.japi.Procedure;
11 import com.google.common.annotations.Beta;
12 import org.eclipse.jdt.annotation.NonNull;
15 * Interface implemented by Actors, who can schedule invocation of a {@link Procedure} in their context.
17 * @author Robert Varga
20 public interface ExecuteInSelfActor {
22 * Run a Runnable in the context of this actor.
24 * @param runnable Runnable to run
26 void executeInSelf(@NonNull Runnable runnable);