Package org.olat.core.util.event.businfo

Examples of org.olat.core.util.event.businfo.BusListenerInfo.addEntry()


      for (Entry<String, EventAgency> entry: infocenter.entrySet()) {
        String derivedOres = entry.getKey();
        int cnt = entry.getValue().getListenerCount();
        // only add those with at least one current listener. Telling that a resource has no listeners is unneeded since we update
        // the whole table on each clusterInfoEvent (cluster:: could be improved by only sending the delta of listeners)
        if (cnt > 0) bii.addEntry(derivedOres, cnt);
      }
      // for all types: the name of the type is used as key
      for (Entry<String, EventAgency> entry: typeInfocenter.entrySet()) {
        String derivedOres = entry.getKey();
        int cnt = entry.getValue().getListenerCount();
View Full Code Here


      }
      // for all types: the name of the type is used as key
      for (Entry<String, EventAgency> entry: typeInfocenter.entrySet()) {
        String derivedOres = entry.getKey();
        int cnt = entry.getValue().getListenerCount();
        if (cnt > 0) bii.addEntry(derivedOres, cnt);
      }
    }
    return bii;
  }
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.