org.zeromq.ZMQQueue Maven / Gradle / Ivy
package org.zeromq;
import org.zeromq.ZMQ.Context;
import org.zeromq.ZMQ.Socket;
public class ZMQQueue implements Runnable {
private final Socket inSocket;
private final Socket outSocket;
/**
* Class constructor.
*
* @param context
* a 0MQ context previously created.
* @param inSocket
* input socket
* @param outSocket
* output socket
*/
public ZMQQueue(Context context, Socket inSocket, Socket outSocket) {
this.inSocket = inSocket;
this.outSocket = outSocket;
}
@Override
public void run()
{
zmq.ZMQ.zmq_proxy (inSocket.base(), outSocket.base(), null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy