Package org.zeromq.ZMQ

Examples of org.zeromq.ZMQ.Socket.disconnect()


            if (msg[0] != null) {
              handleMsg(msg);
              continue;
            }
            if (doDisconnect) {
              socket.disconnect(zmqUrl);
              doDisconnect = false;
              return;
            }
          } catch (final Exception e) {
            LOG.log(Level.SEVERE, "Caught error:", e);
View Full Code Here


  public synchronized void reconnect(final String agentId) throws IOException {
    try {
      if (inboundSockets.containsKey(agentId)) {
        final ZmqConnection conn = inboundSockets.get(agentId);
        final Socket socket = conn.getSocket();
        socket.disconnect(conn.getZmqUrl().toString());
        socket.bind(conn.getZmqUrl().toString());
        conn.listen();
      } else {
        final ZmqConnection socket = new ZmqConnection(
            ZMQ.getSocket(org.zeromq.ZMQ.PULL), this);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.