Restart downed nodes.
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / common / actor / ExecuteInSelfActor.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.common.actor;
9
10 import akka.japi.Procedure;
11 import com.google.common.annotations.Beta;
12 import org.eclipse.jdt.annotation.NonNull;
13
14 /**
15  * Interface implemented by Actors, who can schedule invocation of a {@link Procedure} in their context.
16  *
17  * @author Robert Varga
18  */
19 @Beta
20 public interface ExecuteInSelfActor {
21     /**
22      * Run a Runnable in the context of this actor.
23      *
24      * @param runnable Runnable to run
25      */
26     void executeInSelf(@NonNull Runnable runnable);
27 }