public interface ClientEndpointManager
ClientEndpoints.
 All the methods are thread-safe.| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Removes all endpoints. 
 | 
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 endpoint)
Removes an endpoint from this ClientEndpointManager. 
 | 
void | 
removeEndpoint(ClientEndpoint endpoint,
              boolean closeImmediately)
Removes an endpoint and optionally closes it immediately. 
 | 
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)
endpoint - the endpoint to remove.NullPointerException - if endpoint is null.removeEndpoint(ClientEndpoint, boolean)void removeEndpoint(ClientEndpoint endpoint, boolean closeImmediately)
endpoint - the endpoint to remove.closeImmediately - if the endpoint is immediately closed.NullPointerException - if endpoint is null.removeEndpoint(ClientEndpoint)Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.