Merge "BUG-614: migrate RuntimeGeneratedInvoker"
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / implementation / src / main / java / org / opendaylight / controller / sal / connector / remoterpc / dto / MessageWrapper.java
1 /*
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
6  */
7
8 package org.opendaylight.controller.sal.connector.remoterpc.dto;
9
10 import org.zeromq.ZMQ;
11
12 /**
13  * A class encapsulating {@link Message} and the {@link ZMQ.Socket} over which it is transmitted
14  */
15 public class MessageWrapper {
16
17   private Message _message;
18   private ZMQ.Socket _receiveSocket;
19
20   public MessageWrapper(Message message, ZMQ.Socket receiveSocket) {
21     this._message = message;
22     this._receiveSocket = receiveSocket;
23   }
24
25   public Message getMessage() {
26     return _message;
27   }
28
29   public ZMQ.Socket getReceiveSocket() {
30     return _receiveSocket;
31   }
32 }