|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.client.impl.ClientEndpointManagerImpl
public class ClientEndpointManagerImpl
Manages and stores ClientEndpointImpl
s.
Constructor Summary | |
---|---|
ClientEndpointManagerImpl(ClientEngineImpl clientEngine,
NodeEngine nodeEngine)
|
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 ce,
boolean closeImmediately)
Removes an endpoint and optionally closes it immediately. |
void |
removeEndpoints(String memberUuid)
|
int |
size()
Returns the current number of endpoints. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientEndpointManagerImpl(ClientEngineImpl clientEngine, NodeEngine nodeEngine)
Method Detail |
---|
public Set<ClientEndpoint> getEndpoints(String clientUuid)
ClientEndpointManager
getEndpoints
in interface ClientEndpointManager
clientUuid
- the uuid of the client
public 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)
ClientEndpointManager
removeEndpoint
in interface ClientEndpointManager
endpoint
- the endpoint to remove.ClientEndpointManager.removeEndpoint(ClientEndpoint, boolean)
public void removeEndpoint(ClientEndpoint ce, boolean closeImmediately)
ClientEndpointManager
removeEndpoint
in interface ClientEndpointManager
ce
- the endpoint to remove.closeImmediately
- if the endpoint is immediately closed.ClientEndpointManager.removeEndpoint(ClientEndpoint)
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |