2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
3 * This program and the accompanying materials are made available under the
4 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
5 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.sal.connector.remoterpc.dto;
10 import org.zeromq.ZMQ;
13 * A class encapsulating {@link Message} and the {@link ZMQ.Socket} over which it is transmitted
15 public class MessageWrapper {
17 private Message _message;
18 private ZMQ.Socket _receiveSocket;
20 public MessageWrapper(Message message, ZMQ.Socket receiveSocket) {
21 this._message = message;
22 this._receiveSocket = receiveSocket;
25 public Message getMessage() {
29 public ZMQ.Socket getReceiveSocket() {
30 return _receiveSocket;