This is part of JGroups, MERGE2 protocol plus GMS.
You could write your own JGroups protocol to replace the existing algorithm.
Is "MERGE2 protocol plus GMS" also used by the HASingletonService to elect the master node?
afaik. The HASingleton simply relies on callbacks received by the underlying JGroups.
any example or docs available ?