Takin is an Java-based, open-source system designed to measure online environmental performance test for full-links, Especially for microservices. Through Takin, middlewares and applications can identify real online traffic and test traffic, ensure that they enter the right databases.
、、、 public void doEvents(Event event) { Map<String,ListenerContainer.Listener> map = listenerContainer.getListeners().get(event.getEventName()); List list = new ArrayList(map.values());
Collections.sort(list, new Comparator() {
@Override
public int compare(ListenerContainer.Listener o1, ListenerContainer.Listener o2) {
return o1.getIntrestFor().order() > o1.getIntrestFor().order() ? 1 : -1;
}
、、、