Package org.spincast.core.websocket
Interface WebsocketEndpointToControllerManager
- All Known Implementing Classes:
WebsocketEndpointToControllerManagerDefault
public interface WebsocketEndpointToControllerManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEndpointController
(String endpointId, WebsocketController<?, ?> controller) Adds a link between a WebSocket endpoint and a controller.boolean
isManagingEndpoint
(String endpointId, WebsocketController<?, ?> controller) Is the specified controller currently the manager of the endpoint?void
removeEndpointController
(String endpointId) Removes the link between a WebSocket endpoint and a controller.
-
Method Details
-
addEndpointController
void addEndpointController(String endpointId, WebsocketController<?, ?> controller) throws WebsocketEndpointAlreadyManagedByAnotherControllerExceptionAdds a link between a WebSocket endpoint and a controller. Only this controller will be able to manage the endpoint. -
removeEndpointController
Removes the link between a WebSocket endpoint and a controller. -
isManagingEndpoint
Is the specified controller currently the manager of the endpoint?
-