1 package org.opendaylight.controller.sal.connector.api;
3 import java.util.concurrent.Future;
9 * @param <C> Routing Context Identifier
10 * @param <R> Route Type
12 * @param <D> Data Type
14 public interface RpcRouter<C,R,T,D> {
18 Future<RpcReply<D>> sendRpc(RpcRequest<C, R, T, D> input);
25 * @param <C> Routing Context Identifier
26 * @param <R> Route Type
28 * @param <D> Data Type
30 public interface RpcRequest<C,R,T,D> {
32 RouteIdentifier<C,R,T> getRoutingInformation();
36 public interface RouteIdentifier<C,R,T> {
38 C getContext(); // defines a routing table (e.g. NodeContext)
39 R getRoute(); // e.g. (node identity)
40 T getType(); // rpc type
43 public interface RpcReply<D> {