Package org.spincast.core.websocket
Class WebsocketEndpointToControllerManagerDefault
java.lang.Object
org.spincast.core.websocket.WebsocketEndpointToControllerManagerDefault
- All Implemented Interfaces:
WebsocketEndpointToControllerManager
public class WebsocketEndpointToControllerManagerDefault
extends Object
implements WebsocketEndpointToControllerManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEndpointController(String endpointId, WebsocketController<?, ?> controller) Adds a link between a WebSocket endpoint and a controller.protected StringcreateControllerKey(WebsocketController<?, ?> controller) booleanisManagingEndpoint(String endpointId, WebsocketController<?, ?> controller) Is the specified controller currently the manager of the endpoint?voidremoveEndpointController(String endpointId) Removes the link between a WebSocket endpoint and a controller.
-
Constructor Details
-
WebsocketEndpointToControllerManagerDefault
public WebsocketEndpointToControllerManagerDefault()
-
-
Method Details
-
getEndpointToControllerMap
-
createControllerKey
-
addEndpointController
public void addEndpointController(String endpointId, WebsocketController<?, ?> controller) throws WebsocketEndpointAlreadyManagedByAnotherControllerExceptionDescription copied from interface:WebsocketEndpointToControllerManagerAdds a link between a WebSocket endpoint and a controller. Only this controller will be able to manage the endpoint.- Specified by:
addEndpointControllerin interfaceWebsocketEndpointToControllerManager- Throws:
WebsocketEndpointAlreadyManagedByAnotherControllerException
-
removeEndpointController
Description copied from interface:WebsocketEndpointToControllerManagerRemoves the link between a WebSocket endpoint and a controller.- Specified by:
removeEndpointControllerin interfaceWebsocketEndpointToControllerManager
-
isManagingEndpoint
Description copied from interface:WebsocketEndpointToControllerManagerIs the specified controller currently the manager of the endpoint?- Specified by:
isManagingEndpointin interfaceWebsocketEndpointToControllerManager
-