MetaspaceMemberMonitor

The MetaspaceMemberMonitor example creates a MetaspaceMemberListener for a metaspace. The listener callback is invoked whenever a member joins, leaves or changes their role in the metaspace (e.g. member vs manager). The listener callback displays information about the event which caused it to be invoked.

MetaspaceMemberMonitor is only interested in events that affect the members of a metaspace. If MetaspaceMemberMonitor connects to a metaspace with existing members, it displays information about those members when it first starts up, then display information about members as they connect to or leave the metaspace.