org.zeromq.ZMQQueue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jeromq Show documentation
Show all versions of jeromq Show documentation
Pure Java implementation of libzmq
The newest version!
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.proxy(inSocket.base(), outSocket.base(), null);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy