gpt4 book ai didi

org.springframework.web.socket.WebSocketHandler.supportsPartialMessages()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 18:55:05 30 4
gpt4 key购买 nike

本文整理了Java中org.springframework.web.socket.WebSocketHandler.supportsPartialMessages()方法的一些代码示例,展示了WebSocketHandler.supportsPartialMessages()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebSocketHandler.supportsPartialMessages()方法的具体详情如下:
包路径:org.springframework.web.socket.WebSocketHandler
类名称:WebSocketHandler
方法名:supportsPartialMessages

WebSocketHandler.supportsPartialMessages介绍

[英]Whether the WebSocketHandler handles partial messages. If this flag is set to true and the underlying WebSocket server supports partial messages, then a large WebSocket message, or one of an unknown size may be split and maybe received over multiple calls to #handleMessage(WebSocketSession,WebSocketMessage). The flag org.springframework.web.socket.WebSocketMessage#isLast() indicates if the message is partial and whether it is the last part.
[中]WebSocketHandler是否处理部分消息。如果此标志设置为true,且基础WebSocket服务器支持部分消息,则可能会拆分一条大的WebSocket消息或一条未知大小的消息,并可能通过多次调用#handleMessage(WebSocketSession,WebSocketMessage)来接收。旗帜组织。springframework。网状物插座WebSocketMessage#isLast()指示消息是否为部分消息,以及它是否为最后一部分。

代码示例

代码示例来源:origin: spring-projects/spring-framework

@Override
public boolean supportsPartialMessages() {
  return this.delegate.supportsPartialMessages();
}

代码示例来源:origin: spring-projects/spring-framework

if (this.handler.supportsPartialMessages()) {
  session.addMessageHandler(new MessageHandler.Partial<String>() {
    @Override

代码示例来源:origin: apache/servicemix-bundles

@Override
public boolean supportsPartialMessages() {
  return this.delegate.supportsPartialMessages();
}

代码示例来源:origin: org.springframework/spring-websocket

@Override
public boolean supportsPartialMessages() {
  return this.delegate.supportsPartialMessages();
}

代码示例来源:origin: apache/servicemix-bundles

if (this.handler.supportsPartialMessages()) {
  session.addMessageHandler(new MessageHandler.Partial<String>() {
    @Override

代码示例来源:origin: org.springframework/spring-websocket

if (this.handler.supportsPartialMessages()) {
  session.addMessageHandler(new MessageHandler.Partial<String>() {
    @Override

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com