Class WebSocketSpringConfiguration
- java.lang.Object
-
- jetbrains.buildServer.push.impl.jsr356.WebSocketSpringConfiguration
-
@Conditional(WebSocketSupportEnabled.class) @Configuration public class WebSocketSpringConfiguration extends Object
This configuration contains only beans that should be loaded only when WebSocket is supported by servlet container. So that it's annotated withConditional
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebSocketSpringConfiguration.WebSocketSupportEnabled
-
Constructor Summary
Constructors Constructor Description WebSocketSpringConfiguration(DefaultTopicsRegistry topicsRegistry, SecurityContextEx securityContext, ExecutorServices executorServices, BuildServerListenerEventDispatcher events, WebSocketFeature webSocketFeature, ActiveWebSocketSessions activeWebSocketSessions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionsWebSocketEndpointendpoint()It's prototype so that new endpoint instance is created for every connection (as specified by JSR356)WebSocketBroadcasterwebsocketBroadcaster()WebSocketHeartbeatwebSocketHeartbeat()
-
-
-
Constructor Detail
-
WebSocketSpringConfiguration
public WebSocketSpringConfiguration(DefaultTopicsRegistry topicsRegistry, SecurityContextEx securityContext, ExecutorServices executorServices, BuildServerListenerEventDispatcher events, WebSocketFeature webSocketFeature, ActiveWebSocketSessions activeWebSocketSessions)
-
-
Method Detail
-
endpoint
@Bean @Scope("prototype") public SubscriptionsWebSocketEndpoint endpoint()It's prototype so that new endpoint instance is created for every connection (as specified by JSR356)
-
websocketBroadcaster
@Bean public WebSocketBroadcaster websocketBroadcaster()
-
webSocketHeartbeat
@Bean public WebSocketHeartbeat webSocketHeartbeat()
-
-