}
}
public void notifyMerge(List<Address> members, List<Address> oldMembers, Address myAddress, int viewId, boolean needsToRejoin, List<List<Address>> subgroupsMerged) {
if (!mergeListeners.isEmpty()) {
EventImpl e = new EventImpl();
e.setLocalAddress(myAddress);
e.setViewId(viewId);
e.setNewMembers(members);
e.setOldMembers(oldMembers);
e.setCacheManager(cacheManager);
e.setNeedsToRejoin(needsToRejoin);
e.setSubgroupsMerged(subgroupsMerged);
e.setType(Event.Type.MERGED);
for (ListenerInvocation listener : mergeListeners) listener.invoke(e);
}
}