Package org.jeromq

Examples of org.jeromq.ZMsg


    private void processEvents() {
        while (running) {
            try {
                final StatsEMsgBuilder msg = events.take();
                final ZMsg zmsg = makeZMsg();
                zmsg.addString(msg.getHeader());
                zmsg.addString(msg.getBody());
                zmsg.send(publisher);
            } catch (InterruptedException e) {
                LOG.warn("StatsE sender interrupted.");
            }
        }
    }
View Full Code Here


            }
        }
    }

    protected ZMsg makeZMsg() {
        return new ZMsg();
    }
View Full Code Here

TOP

Related Classes of org.jeromq.ZMsg

Copyright © 2018 www.massapicom. 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.