@Controller public class WebSocketController extends MetricController
Constructor and Description |
---|
WebSocketController(WebSocketService webSocketService,
BQLService bqlService,
StatusService statusService,
com.yahoo.bullet.common.metrics.MetricPublisher metricPublisher)
Constructor that takes various services.
|
Modifier and Type | Method and Description |
---|---|
void |
submitWebsocketQuery(WebSocketRequest request,
org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor)
The method that handles WebSocket messages to this endpoint.
|
incrementMetric, incrementMetric, publishMetrics, toMetric
@Autowired public WebSocketController(WebSocketService webSocketService, BQLService bqlService, StatusService statusService, com.yahoo.bullet.common.metrics.MetricPublisher metricPublisher)
webSocketService
- The WebSocketService
to use.bqlService
- The BQLService
to use.statusService
- The StatusService
to use.metricPublisher
- The MetricPublisher
to use. It can be null.@MessageMapping(value="${bullet.websocket.server.destination}") public void submitWebsocketQuery(@Payload WebSocketRequest request, org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor)
request
- The WebSocketRequest
object.headerAccessor
- The SimpMessageHeaderAccessor
headers associated with the message.Copyright © 2021 Pivotal Software, Inc.. All rights reserved.