2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.sal.connector.api;
10 import java.util.concurrent.Future;
12 public class BindingAwareZeroMqRpcRouter implements BindingAwareRpcRouter {
14 BindingAwareRpcRouter mdSalRouter;
16 public BindingAwareRpcRouter getMdSalRouter() {
21 public void setMdSalRouter(BindingAwareRpcRouter mdSalRouter) {
22 this.mdSalRouter = mdSalRouter;
27 public Future<RpcReply<byte[]>> sendRpc(RpcRequest<String, String, String, byte[]> input) {
28 // Write message down to the wire
32 // Receiver part - invoked when request is received and deserialized
33 private Future<RpcReply<byte[]>> receivedRequest(RpcRequest<String, String, String, byte[]> input) {
35 return mdSalRouter.sendRpc(input);