@PrivateApi public interface ClientEndpointManager
ClientEndpoint
s.
All the methods are thread-safe.Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all endpoints.
|
Connection |
findLiveConnectionFor(String clientUuid) |
ClientEndpoint |
getEndpoint(Connection connection)
Gets the endpoint for a given connection.
|
Collection<ClientEndpoint> |
getEndpoints()
Returns the current endpoints.
|
Set<ClientEndpoint> |
getEndpoints(String clientUuid)
Gets all the endpoints for a given client.
|
void |
registerEndpoint(ClientEndpoint endpoint)
Registers an endpoint with this ClientEndpointManager.
|
void |
removeEndpoint(ClientEndpoint ce,
boolean closeImmediately,
String reason)
Removes an endpoint and optionally closes it immediately.
|
void |
removeEndpoint(ClientEndpoint endpoint,
String reason)
Removes an endpoint from this ClientEndpointManager.
|
int |
size()
Returns the current number of endpoints.
|
Collection<ClientEndpoint> getEndpoints()
ClientEndpoint getEndpoint(Connection connection)
connection
- the connection to the endpoint.NullPointerException
- if connection is null.Set<ClientEndpoint> getEndpoints(String clientUuid)
clientUuid
- the uuid of the clientNullPointerException
- if clientUuid is null.int size()
void clear()
void registerEndpoint(ClientEndpoint endpoint)
endpoint
- the endpoint to register.NullPointerException
- if endpoint is null.void removeEndpoint(ClientEndpoint endpoint, String reason)
endpoint
- the endpoint to remove.reason
- The reason why the endpoint is being removedNullPointerException
- if endpoint is null.removeEndpoint(ClientEndpoint, boolean, String)
void removeEndpoint(ClientEndpoint ce, boolean closeImmediately, String reason)
ce
- the endpoint to remove.closeImmediately
- if the endpoint is immediately closed.reason
- The reason why the endpoint is being removed.NullPointerException
- if endpoint is null.removeEndpoint(ClientEndpoint, String)
Connection findLiveConnectionFor(String clientUuid)
clientUuid
- The uuid of the desired client conectionCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.