本文整理汇总了Java中org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean.setMaxBinaryMessageBufferSize方法的典型用法代码示例。如果您正苦于以下问题:Java ServletServerContainerFactoryBean.setMaxBinaryMessageBufferSize方法的具体用法?Java ServletServerContainerFactoryBean.setMaxBinaryMessageBufferSize怎么用?Java ServletServerContainerFactoryBean.setMaxBinaryMessageBufferSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean
的用法示例。
在下文中一共展示了ServletServerContainerFactoryBean.setMaxBinaryMessageBufferSize方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(8192);
container.setMaxBinaryMessageBufferSize(8192);
return container;
}
示例2: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(8192);
container.setMaxBinaryMessageBufferSize(8192);
return container;
}
示例3: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(32768);
container.setMaxBinaryMessageBufferSize(32768);
return container;
}
示例4: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(10 * 1024 * 1024);
container.setMaxBinaryMessageBufferSize(10 * 1024 * 1024);
return container;
}
示例5: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
/**
* Creates the web socket container.
*
* @return the servlet server container factory bean
*/
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(8192);
container.setMaxBinaryMessageBufferSize(8192);
return container;
}
示例6: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(1000000); // chars
container.setMaxBinaryMessageBufferSize(1000000); // bytes
return container;
}
示例7: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxSessionIdleTimeout(10000);
container.setMaxTextMessageBufferSize(1000000);
container.setMaxBinaryMessageBufferSize(1000000);
return container;
}
示例8: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
/**
* For serving up websockets in a Tomcat / GlassFish / WildFly environment
*
* @return
*/
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxTextMessageBufferSize(8192);
container.setMaxBinaryMessageBufferSize(8192);
return container;
}
示例9: createWebSocketContainer
import org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean; //导入方法依赖的package包/类
@Bean
public ServletServerContainerFactoryBean createWebSocketContainer() {
ServletServerContainerFactoryBean container = new ServletServerContainerFactoryBean();
container.setMaxBinaryMessageBufferSize(Constants.WEBSOCKET_MAX_BUFFER_SIZE);
container.setMaxTextMessageBufferSize(Constants.WEBSOCKET_MAX_BUFFER_SIZE);
container.setMaxSessionIdleTimeout(Constants.WEBSOCKET_TIMEOUT);
return container;
}