public class ClientEndpointManagerImpl extends Object implements ClientEndpointManager
ClientEndpointImpl
s.Constructor and Description |
---|
ClientEndpointManagerImpl(ClientEngineImpl clientEngine,
NodeEngine nodeEngine) |
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 clientEndpoint,
boolean closeImmediately,
String reason)
Removes an endpoint and optionally closes it immediately.
|
void |
removeEndpoint(ClientEndpoint endpoint,
String reason)
Removes an endpoint from this ClientEndpointManager.
|
void |
removeEndpoints(String memberUuid) |
int |
size()
Returns the current number of endpoints.
|
public ClientEndpointManagerImpl(ClientEngineImpl clientEngine, NodeEngine nodeEngine)
public Set<ClientEndpoint> getEndpoints(String clientUuid)
ClientEndpointManager
getEndpoints
in interface ClientEndpointManager
clientUuid
- the uuid of the clientpublic ClientEndpoint getEndpoint(Connection connection)
ClientEndpointManager
getEndpoint
in interface ClientEndpointManager
connection
- the connection to the endpoint.public void registerEndpoint(ClientEndpoint endpoint)
ClientEndpointManager
registerEndpoint
in interface ClientEndpointManager
endpoint
- the endpoint to register.public void removeEndpoint(ClientEndpoint endpoint, String reason)
ClientEndpointManager
removeEndpoint
in interface ClientEndpointManager
endpoint
- the endpoint to remove.reason
- The reason why the endpoint is being removedClientEndpointManager.removeEndpoint(ClientEndpoint, boolean, String)
public void removeEndpoint(ClientEndpoint clientEndpoint, boolean closeImmediately, String reason)
ClientEndpointManager
removeEndpoint
in interface ClientEndpointManager
clientEndpoint
- the endpoint to remove.closeImmediately
- if the endpoint is immediately closed.reason
- The reason why the endpoint is being removed.ClientEndpointManager.removeEndpoint(ClientEndpoint, String)
public void removeEndpoints(String memberUuid)
public void clear()
ClientEndpointManager
clear
in interface ClientEndpointManager
public Collection<ClientEndpoint> getEndpoints()
ClientEndpointManager
getEndpoints
in interface ClientEndpointManager
public int size()
ClientEndpointManager
size
in interface ClientEndpointManager
public Connection findLiveConnectionFor(String clientUuid)
findLiveConnectionFor
in interface ClientEndpointManager
clientUuid
- The uuid of the desired client conectionCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.