当前位置: 首页>>代码示例>>Java>>正文


Java ServletServerContainerFactoryBean.setMaxBinaryMessageBufferSize方法代码示例

本文整理汇总了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;
}
 
开发者ID:wieden-kennedy,项目名称:composite-framework,代码行数:8,代码来源:WebSocketConfig.java

示例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;
}
 
开发者ID:osswangxining,项目名称:iotplatform,代码行数:8,代码来源:WebSocketConfiguration.java

示例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;
}
 
开发者ID:thingsboard,项目名称:thingsboard,代码行数:8,代码来源:WebSocketConfiguration.java

示例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;
}
 
开发者ID:lixiaocong,项目名称:lxcCMS,代码行数:8,代码来源:SocketConfig.java

示例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;
}
 
开发者ID:mrstampy,项目名称:gameboot,代码行数:14,代码来源:OtpWebSocketTestConfiguration.java

示例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;
}
 
开发者ID:Kurento,项目名称:kurento-room,代码行数:8,代码来源:KurentoRoomServerApp.java

示例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;
}
 
开发者ID:Kurento,项目名称:kurento-java,代码行数:9,代码来源:BootTestApplication.java

示例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;
}
 
开发者ID:bjornharvold,项目名称:bearchoke,代码行数:13,代码来源:WebSocketConfig.java

示例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;
}
 
开发者ID:devicehive,项目名称:devicehive-java-server,代码行数:9,代码来源:WebSocketConfig.java


注:本文中的org.springframework.web.socket.server.standard.ServletServerContainerFactoryBean.setMaxBinaryMessageBufferSize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。