public abstract class IntegrationWebSocketContainer extends ObjectSE implements DisposableBean
ネイティブ Web-Socket コンテナーで使用される内部 WebSocketHandler 実装の構成を提供します。
getSession(String) を使用してアクセスできる確立された WebSocketSession を収集します。
WebSocketListener を受け入れて、内部 IntegrationWebSocketContainer.IntegrationWebSocketHandler から WebSocketSession イベントを委譲できます。
サポートされているサブプロトコルを構成できますが、SubProtocolCapable.getSubProtocols() には前例があります。
WebSocketInboundChannelAdapter, WebSocketOutboundMessageHandler| 修飾子と型 | フィールドと説明 |
|---|---|
static int | DEFAULT_SEND_BUFFER_SIZE |
static int | DEFAULT_SEND_TIME_LIMIT |
protected Log | logger |
protected MapSE<StringSE, WebSocketSession> | sessions |
protected WebSocketHandler | webSocketHandler |
| コンストラクターと説明 |
|---|
IntegrationWebSocketContainer() |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | addSupportedProtocols(StringSE... protocols) |
void | closeSession(WebSocketSession session, CloseStatus closeStatus) |
void | destroy() |
WebSocketSession | getSession(StringSE sessionId) |
MapSE<StringSE, WebSocketSession> | getSessions() |
ListSE<StringSE> | getSubProtocols() |
void | setMessageListener(WebSocketListener messageListener) |
void | setSendBufferSizeLimit(int sendBufferSizeLimit) |
void | setSendTimeLimit(int sendTimeLimit) |
void | setSupportedProtocols(StringSE... protocols) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic static final int DEFAULT_SEND_TIME_LIMIT
public static final int DEFAULT_SEND_BUFFER_SIZE
protected final Log logger
protected final WebSocketHandler webSocketHandler
protected final MapSE<StringSE,WebSocketSession> sessions
public void setSendTimeLimit(int sendTimeLimit)
public void setSendBufferSizeLimit(int sendBufferSizeLimit)
public void setMessageListener(WebSocketListener messageListener)
public void setSupportedProtocols(StringSE... protocols)
public void addSupportedProtocols(StringSE... protocols)
public MapSE<StringSE,WebSocketSession> getSessions()
public WebSocketSession getSession(StringSE sessionId)
public void closeSession(WebSocketSession session, CloseStatus closeStatus) throws ExceptionSE
ExceptionSEpublic void destroy()
DisposableBean の destroy