public.javadoc.org.spincast.core.websocket.WebsocketEndpointToControllerManagerDefault.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
WebsocketEndpointToControllerManagerDefault (org.spincast:spincast-framework 1.0.0 API)
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
Constructor and Description
WebsocketEndpointToControllerManagerDefault()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
void
addEndpointController(String endpointId,
WebsocketController<?,?> controller)
Adds a link between a WebSocket endpoint and a controller.
protected String
createControllerKey(WebsocketController<?,?> controller)
protected Map<String,String>
getEndpointToControllerMap()
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.
-
-
Constructor Detail
-
WebsocketEndpointToControllerManagerDefault
public WebsocketEndpointToControllerManagerDefault()
-
Method Detail
-
createControllerKey
protected String createControllerKey(WebsocketController<?,?> controller)
-
addEndpointController
public void addEndpointController(String endpointId,
WebsocketController<?,?> controller)
throws WebsocketEndpointAlreadyManagedByAnotherControllerException
Description copied from interface: WebsocketEndpointToControllerManager
Adds a link between a WebSocket endpoint and a controller.
Only this controller will be able to manage the endpoint.
- Specified by:
addEndpointController
in interface WebsocketEndpointToControllerManager
- Throws:
WebsocketEndpointAlreadyManagedByAnotherControllerException
-
removeEndpointController
public void removeEndpointController(String endpointId)
Description copied from interface: WebsocketEndpointToControllerManager
Removes the link between a WebSocket endpoint and a controller.
- Specified by:
removeEndpointController
in interface WebsocketEndpointToControllerManager
-
isManagingEndpoint
public boolean isManagingEndpoint(String endpointId,
WebsocketController<?,?> controller)
Description copied from interface: WebsocketEndpointToControllerManager
Is the specified controller currently the manager of the
endpoint?
- Specified by:
isManagingEndpoint
in interface WebsocketEndpointToControllerManager
Copyright © 2019. All rights reserved.