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