Package com.hazelcast.client
Interface Client
- All Superinterfaces:
Endpoint
The Client interface allows to get information about
a connected client's socket address, type and UUID.
ClientService ClientListener
-
Method Details
-
getUuid
UUID getUuid()Returns a unique UUID for this client. -
getSocketAddress
InetSocketAddress getSocketAddress()Returns the socket address of this client.- Specified by:
getSocketAddress
in interfaceEndpoint
- Returns:
- the socket address of this client
-
getClientType
String getClientType()- Returns:
- the type of this client
-
getName
String getName()This method may return null depending on the client version and the client type Java client provides client name starting with 3.12- Returns:
- the name of this client if provided, null otherwise
- Since:
- 3.12
-
getLabels
- Returns:
- read only set of all labels of this client.
- Since:
- 3.12
-