类 ConcurrentWebSocketSessionDecorator

  • 所有已实现的接口:
    Closeable, AutoCloseable, WebSocketSession

    public class ConcurrentWebSocketSessionDecorator
    extends WebSocketSessionDecorator
    Wrap a WebSocketSession to guarantee only one thread can send messages at a time.

    If a send is slow, subsequent attempts to send more messages from other threads will not be able to acquire the flush lock and messages will be buffered instead. At that time, the specified buffer-size limit and send-time limit will be checked and the session will be closed if the limits are exceeded.

    从以下版本开始:
    4.0.3
    作者:
    Rossen Stoyanchev, Juergen Hoeller