Examples of txnStatus()


Examples of com.trendrr.strest.server.ResponseBuilder.txnStatus()

    String self = (String)con.getChannelStorage().get("username");
   
    //Now that I am registered to recieve connect message, then I
    //tell everyone else that I am online.
    ResponseBuilder response = new ResponseBuilder();
    response.txnStatus(StrestUtil.HEADERS.TXN_STATUS_VALUES.CONTINUE);
    response.contentUTF8(self);
    notifyConnect.sendMessage(response.getResponse());
   
   
    this.notifyConnect.addConnection(con);
View Full Code Here

Examples of com.trendrr.strest.server.ResponseBuilder.txnStatus()

    for (String username : this.onlineNow.keySet()) {
      if (username.equals(self)) {
        continue; //don't need to notify about self
      }
      response = new ResponseBuilder();
      response.txnStatus(StrestUtil.HEADERS.TXN_STATUS_VALUES.CONTINUE);
      response.contentUTF8(username);
      con.sendMessage(response);
    }
  }
View Full Code Here

Examples of com.trendrr.strest.server.ResponseBuilder.txnStatus()

      return;
    this.onlineNow.remove(username);
    this.notifyMessage.remove(username);
    //now send the username to all who want connect notifications.
    ResponseBuilder response = new ResponseBuilder();
    response.txnStatus(StrestUtil.HEADERS.TXN_STATUS_VALUES.CONTINUE);
    response.contentUTF8(username);
    notifyDisconnect.sendMessage(response.getResponse());
  }
 
}
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.