|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClientEndpointManager
A manager for ClientEndpoints.
All the methods are thread-safe.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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 client
NullPointerException - 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||