Fix CS warnings in sal-remoterpc-connector and enable enforcement
[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  * We can pick node randomly, round robin manner or based on last updated time etc.
17  */
18
19 public interface RoutingLogic {
20     ActorRef select();
21 }