Package com.omniti.labs

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

Related Classes of com.omniti.labs.FqMessage

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.