public final class ClientMembership extends Object
Modifier and Type | Method and Description |
---|---|
static ClientMembershipListener[] |
getClientMembershipListeners()
Returns an array of all the currently registered
ClientMembershipListener s. |
static void |
registerClientMembershipListener(ClientMembershipListener listener)
Registers a
ClientMembershipListener for notification of connection changes for
CacheServer and clients. |
static void |
unregisterClientMembershipListener(ClientMembershipListener listener)
Removes registration of a previously registered
ClientMembershipListener . |
public static void registerClientMembershipListener(ClientMembershipListener listener)
ClientMembershipListener
for notification of connection changes for
CacheServer and clients.listener
- a ClientMembershipListener to be registeredpublic static void unregisterClientMembershipListener(ClientMembershipListener listener)
ClientMembershipListener
.listener
- a ClientMembershipListener to be unregisteredpublic static ClientMembershipListener[] getClientMembershipListeners()
ClientMembershipListener
s.
Modifications to the returned array will not affect the registration of these listeners.ClientMembershipListener
s; an empty array if no listeners