4de71949fc37eb760865f676a1e4372cb2c9472c
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / main / java / org / opendaylight / controller / remote / rpc / utils / RoutingLogic.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. 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
9 package org.opendaylight.controller.remote.rpc.utils;
10
11 import akka.actor.ActorRef;
12
13 /**
14  * This Interface is added to abstract out the way rpc execution could be
15  * routed, if more than one node in cluster is capable of executing the rpc.
16  *
17  * We can pick node randomly, round robin manner or based on last updated time etc.
18  */
19
20 public interface RoutingLogic {
21
22   ActorRef select();
23 }