Example usage for org.springframework.web.socket.handler WebSocketSessionDecorator subclass-usage

List of usage examples for org.springframework.web.socket.handler WebSocketSessionDecorator subclass-usage

Introduction

In this page you can find the example usage for org.springframework.web.socket.handler WebSocketSessionDecorator subclass-usage.

Usage

From source file org.springframework.web.socket.handler.ConcurrentWebSocketSessionDecorator.java

/**
 * Wrap a {@link org.springframework.web.socket.WebSocketSession WebSocketSession}
 * to guarantee only one thread can send messages at a time.
 *
 * <p>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.