* @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);
/**
* @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> {