open class AnnotatedEndpointConnectionManager : ConnectionManagerSupport, BeanFactoryAware
A WebSocket connection manager that is given a URI, a javax.websocket.ClientEndpoint-annotated endpoint, connects to a WebSocket server through the #start()
and #stop()
methods. If #setAutoStartup(boolean)
is set to true
this will be done automatically when the Spring ApplicationContext is refreshed.
Author
Rossen Stoyanchev
Since
4.0
AnnotatedEndpointConnectionManager(endpoint: Any, uriTemplate: String, vararg uriVariables: Any) AnnotatedEndpointConnectionManager(endpointClass: Class<*>, uriTemplate: String, vararg uriVariables: Any) |
open fun getTaskExecutor(): TaskExecutor
Return the configured TaskExecutor. |
|
open fun getWebSocketContainer(): WebSocketContainer |
|
open fun setBeanFactory(beanFactory: BeanFactory): Unit |
|
open fun setTaskExecutor(taskExecutor: TaskExecutor): Unit
Set a TaskExecutor to use to open the connection. By default SimpleAsyncTaskExecutor is used. |
|
open fun setWebSocketContainer(webSocketContainer: WebSocketContainer): Unit |