Examples of FqMessage


Examples of com.omniti.labs.FqMessage

  public void alert(String key, String json) {
    String routingKey;
    if(key == null) routingKey = getAlertRoutingKey();
    else routingKey = getAlertRoutingKey() + key;
    try {
      FqMessage msg = new FqMessage();
      msg.setRoute(routingKey.getBytes());
      msg.setExchange(getAlertExchangeName().getBytes());
      msg.setPayload(json.getBytes());
      for(int i=0;i<client.length;i++) client[i].send(msg);
    } catch (Exception e) {
      e.printStackTrace();
      try { connect(); }
      catch (Exception ignored) { }
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.