Package org.springframework.web.socket.config

Examples of org.springframework.web.socket.config.WebSocketMessageBrokerStats


  @Test
  public void webSocketMessageBrokerStats() {
    ApplicationContext config = createConfig(TestChannelConfig.class, TestConfigurer.class);
    String name = "webSocketMessageBrokerStats";
    WebSocketMessageBrokerStats stats = config.getBean(name, WebSocketMessageBrokerStats.class);
    String actual = stats.toString();
    String expected = "WebSocketSession\\[0 current WS\\(0\\)-HttpStream\\(0\\)-HttpPoll\\(0\\), " +
        "0 total, 0 closed abnormally \\(0 connect failure, 0 send limit, 0 transport error\\)\\], " +
        "stompSubProtocol\\[processed CONNECT\\(0\\)-CONNECTED\\(0\\)-DISCONNECT\\(0\\)\\], " +
        "stompBrokerRelay\\[null\\], " +
        "inboundChannel\\[pool size = \\d, active threads = \\d, queued tasks = \\d, completed tasks = \\d\\], " +
View Full Code Here


        (StompBrokerRelayMessageHandler) relayBean : null);

    // Ensure STOMP endpoints are registered
    stompWebSocketHandlerMapping();

    WebSocketMessageBrokerStats stats = new WebSocketMessageBrokerStats();
    stats.setSubProtocolWebSocketHandler((SubProtocolWebSocketHandler) subProtocolWebSocketHandler());
    stats.setStompBrokerRelay(brokerRelay);
    stats.setInboundChannelExecutor(clientInboundChannelExecutor());
    stats.setOutboundChannelExecutor(clientOutboundChannelExecutor());
    stats.setSockJsTaskScheduler(messageBrokerSockJsTaskScheduler());
    return stats;
  }
View Full Code Here

TOP

Related Classes of org.springframework.web.socket.config.WebSocketMessageBrokerStats

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.