@Override
public void onReceive(Object message) throws Exception {
if (message.equals(TICK)) {
if (random.nextBoolean() == true) {
routerSocket.tell(new ZMQMessage(new Frame("A"), new Frame(
"This is the workload for A")));
} else {
routerSocket.tell(new ZMQMessage(new Frame("B"), new Frame(
"This is the workload for B")));
}
count++;
if (count == 10)