public interface ClientService
Client
s and
attach/detach ClientListener
s to listen to connection events.
All the methods are thread-safe.
Client
,
ClientListener
Modifier and Type | Method and Description |
---|---|
UUID |
addClientListener(ClientListener clientListener)
Adds a ClientListener.
|
Collection<Client> |
getConnectedClients()
Returns all connected clients to this member.
|
boolean |
removeClientListener(UUID registrationId)
Removes a ClientListener.
|
@Nonnull Collection<Client> getConnectedClients()
@Nonnull UUID addClientListener(@Nonnull ClientListener clientListener)
clientListener
- the ClientListener to addremoveClientListener(UUID)
methodNullPointerException
- if clientListener is null
boolean removeClientListener(@Nonnull UUID registrationId)
registrationId
- ID of the ClientListener registrationtrue
if registration is removed, false
otherwiseNullPointerException
- if registration ID is null
Copyright © 2023 Hazelcast, Inc.. All rights reserved.