* ZMQ Pull socket receive the msg, validate it and push (inproc) it the Workers
*/
booleankeepRunning=true;
while(keepRunning){
finalbyte[]msgBytes=pull.receive();
if(msgBytes.length>EXIT_MSG_LEN){
push.send(msgBytes,ZMQ.DONTWAIT);
}else{
Stringmsg=newString(msgBytes);
if(msg.equals(EXIT_MSG)){
keepRunning=false;
}
}
}
});
runThread.start();
MicroserviceApp.getsInstance().getLogger().info("ZMQ server started successfully on host: "+zmqParams.getHost()+", and port: "+String.valueOf(zmqParams.getPort()));