Package org.objectweb.joram.mom.notifications

Examples of org.objectweb.joram.mom.notifications.RequestGroupNot


    proxyAgent = proxy;
  }
 
  public void put(int key, ProducerMessages req) {
    AgentId to = AgentId.fromString(req.getTarget());
    RequestGroupNot not = (RequestGroupNot) nots.get(to);
    if (not == null) {
      not = new RequestGroupNot();
      nots.put(to, not);
    }
    ClientMessages cm = new ClientMessages(key, req.getRequestId(), req
        .getMessages());
    if (to.getTo() == proxyAgent.getId().getTo()) {
      cm.setPersistent(false);
    }
    if (req.getAsyncSend()) {
      cm.setAsyncSend(true);
    }
    not.addClientMessages(cm);
  }
View Full Code Here


    if (nots.size() > 0) {
      Enumeration ids = nots.keys();
      Enumeration notifs = nots.elements();
      while (notifs.hasMoreElements()) {
        AgentId to = (AgentId) ids.nextElement();
        RequestGroupNot not = (RequestGroupNot) notifs.nextElement();
        if (to.getTo() == proxyAgent.getId().getTo()) {
          not.setPersistent(false);
          proxyAgent.sendNot(to, not);
        } else {
          proxyAgent.sendNot(to, not);
        }
      }
View Full Code Here

TOP

Related Classes of org.objectweb.joram.mom.notifications.RequestGroupNot

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.