Java 类org.springframework.web.socket.config.annotation.WebSocketTransportRegistration 实例源码

项目:spring-cloud-netflix-zuul-websocket    文件:ZuulWebSocketConfiguration.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration.addDecoratorFactory(new WebSocketHandlerDecoratorFactory() {
        @Override
        public WebSocketHandler decorate(WebSocketHandler handler) {
            ProxyWebSocketHandler proxyWebSocketHandler = new ProxyWebSocketHandler(
                    handler, stompClient, webSocketHttpHeadersCallback,
                    messagingTemplate, zuulPropertiesResolver,
                    zuulWebSocketProperties);
            proxyWebSocketHandler.errorHandler(proxyWebSocketErrorHandler);
            return proxyWebSocketHandler;
        }
    });
}
项目:aws-kinesis-zombies    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration
        .setMessageSizeLimit(64 * 1024)
        .setSendBufferSizeLimit(1024*10 * 1024)
        .setSendTimeLimit(60 * 1000);
}
项目:Taroco    文件:WebSocketConfiguration.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration arg0) {
}
项目:joal    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(final WebSocketTransportRegistration registration) {
    registration
            .setMessageSizeLimit(5000 * 1024) // Max incoming message size => 5Mo
            .setSendBufferSizeLimit(5000 * 1024); // Max outgoing buffer size => 5Mo
}
项目:WebIDE-Backend    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration.addDecoratorFactory(handler -> new SessionCacheWebSocketHandler(handler, webSocketSessionStore));
}
项目:cloudstreetmarket.com    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration
        .setSendTimeLimit(15*1000) //max time allowed when sending
        .setSendBufferSizeLimit(512*1024); //set 0 to disable buffering
}
项目:consensusj    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration.setSendTimeLimit(15 * 1000).setSendBufferSizeLimit(512 * 1024);
}
项目:vidada-server    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    //registration.
}
项目:spring-session    文件:AbstractSessionWebSocketMessageBrokerConfigurer.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration.addDecoratorFactory(wsConnectHandlerDecoratorFactory());
}
项目:TeeFun    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(final WebSocketTransportRegistration registry) {
}
项目:composite-framework    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration.setSendTimeLimit(sendTimeLimit).setSendBufferSizeLimit(sendBufferSizeLimit * 1024);
    registration.setMessageSizeLimit(messageSizeLimit * 1024);
}
项目:bearchoke    文件:WebSocketConfig.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registration) {
    registration.setSendTimeLimit(15 * 1000).setSendBufferSizeLimit(512 * 1024);
    registration.setMessageSizeLimit(128 * 1024);
}
项目:build-monitor    文件:ApplicationConfiguration.java   
@Override
public void configureWebSocketTransport(WebSocketTransportRegistration registry) {
}