this.acceptedTypes = acceptedTypes;
}
public synchronized void assertOk(TopologyEvent event) {
for (int i = 0; i < acceptedTypes.length; i++) {
Type aType = acceptedTypes[i];
if (aType == event.getType()) {
// perfect
Integer c = counts.remove(aType);
if (c == null) {
counts.put(aType, new Integer(1));