Exemplo n.º 1
0
  private void sendPubComp(String clientID, int messageID) {
    LOG.debug(
        "PUB <--PUBCOMP-- SRV sendPubComp invoked for clientID {} ad messageID {}",
        clientID,
        messageID);
    PubCompMessage pubCompMessage = new PubCompMessage();
    pubCompMessage.setMessageID(messageID);

    m_clientIDs.get(clientID).session.write(pubCompMessage);
  }
Exemplo n.º 2
0
 public void processPubComp(ServerChannel session, PubCompMessage msg) {
   String clientID = (String) session.getAttribute(NettyChannel.ATTR_KEY_CLIENTID);
   int messageID = msg.getMessageID();
   LOG.debug(
       "\t\tSRV <--PUBCOMP-- SUB processPubComp invoked for clientID {} ad messageID {}",
       clientID,
       messageID);
   // once received the PUBCOMP then remove the message from the temp memory
   ClientSession targetSession = m_sessionsStore.sessionForClient(clientID);
   verifyToActivate(clientID, targetSession);
   targetSession.secondPhaseAcknowledged(messageID);
 }