Updated ZeroMQ implementation
[controller.git] / opendaylight / md-sal / sal-connector-api / src / main / java / org / opendaylight / controller / sal / connector / api / RpcRouter.java
index 4807c4e2007279f73bc4f21d89975d0d3d283c52..08fce5783ef691009b336dfc18fd7c6eb8402374 100644 (file)
@@ -11,11 +11,11 @@ import java.util.concurrent.Future;
  * @param <T> Rpc Type
  * @param <D> Data Type
  */
-public interface RpcRouter<C,R,T,D> {
+public interface RpcRouter<C,T,R,D> {
 
     
     
-    Future<RpcReply<D>> sendRpc(RpcRequest<C, R, T, D> input);
+    Future<RpcReply<D>> sendRpc(RpcRequest<C, T, R, D> input);
     
     
     /**
@@ -27,17 +27,17 @@ public interface RpcRouter<C,R,T,D> {
         * @param <T> Rpc Type
         * @param <D> Data Type
      */
-    public interface RpcRequest<C,R,T,D> {
+    public interface RpcRequest<C,T,R,D> {
 
-        RouteIdentifier<C,R,T> getRoutingInformation();
+        RouteIdentifier<C,T,R> getRoutingInformation();
         D getPayload();
     }
     
-    public interface RouteIdentifier<C,R,T> {
+    public interface RouteIdentifier<C,T,R> {
         
         C getContext(); // defines a routing table (e.g. NodeContext)
-        R getRoute(); // e.g. (node identity)
         T getType(); // rpc type
+        R getRoute(); // e.g. (node identity)
     }
     
     public interface RpcReply<D> {