public class DefaultWebSocketConnectorFuture extends Object implements WebSocketConnectorFuture
WebSocketConnectorFuture.| Constructor and Description |
|---|
DefaultWebSocketConnectorFuture() |
| Modifier and Type | Method and Description |
|---|---|
void |
notifyWebSocketIdleTimeout(WebSocketControlMessage controlMessage)
Notify idle timeout of WebSocket connection.
|
void |
notifyWebSocketListener(WebSocketBinaryMessage binaryMessage)
Notify incoming WebSocket binary message for the listener.
|
void |
notifyWebSocketListener(WebSocketCloseMessage closeMessage)
Notify WebSocket close message to the user.
|
void |
notifyWebSocketListener(WebSocketConnection webSocketConnection)
Notify incoming WebSocket connection closure for the listener.
|
void |
notifyWebSocketListener(WebSocketConnection webSocketConnection,
Throwable throwable)
Notify any error occurred in transport for the listener.
|
void |
notifyWebSocketListener(WebSocketControlMessage controlMessage)
Notify incoming WebSocket pong message for the listener.
|
void |
notifyWebSocketListener(WebSocketHandshaker webSocketHandshaker)
Notify WebSocket connection initialization for the listener.
|
void |
notifyWebSocketListener(WebSocketTextMessage textMessage)
Notify incoming WebSocket text message for the listener.
|
void |
setWebSocketConnectorListener(WebSocketConnectorListener wsConnectorListener)
Set Connector listener for WebSocket.
|
public void setWebSocketConnectorListener(WebSocketConnectorListener wsConnectorListener)
WebSocketConnectorFuturesetWebSocketConnectorListener in interface WebSocketConnectorFuturewsConnectorListener - Connector listener for WebSocketpublic void notifyWebSocketListener(WebSocketHandshaker webSocketHandshaker) throws WebSocketConnectorException
WebSocketConnectorFuturenotifyWebSocketListener in interface WebSocketConnectorFuturewebSocketHandshaker - WebSocketHandshaker to notify connection initializationWebSocketConnectorException - if any error occurred during the notificationpublic void notifyWebSocketListener(WebSocketTextMessage textMessage) throws WebSocketConnectorException
WebSocketConnectorFuturenotifyWebSocketListener in interface WebSocketConnectorFuturetextMessage - WebSocketTextMessage to notify incoming WebSocket text messageWebSocketConnectorException - if any error occurred during the notificationpublic void notifyWebSocketListener(WebSocketBinaryMessage binaryMessage) throws WebSocketConnectorException
WebSocketConnectorFuturenotifyWebSocketListener in interface WebSocketConnectorFuturebinaryMessage - WebSocketBinaryMessage to notify incoming WebSocket binary messageWebSocketConnectorException - if any error occurred during the notificationpublic void notifyWebSocketListener(WebSocketControlMessage controlMessage) throws WebSocketConnectorException
WebSocketConnectorFuturenotifyWebSocketListener in interface WebSocketConnectorFuturecontrolMessage - WebSocketControlMessage to Notify incoming WebSocket pong messageWebSocketConnectorException - if any error occurred during the notificationpublic void notifyWebSocketListener(WebSocketCloseMessage closeMessage) throws WebSocketConnectorException
WebSocketConnectorFuturenotifyWebSocketListener in interface WebSocketConnectorFuturecloseMessage - WebSocketCloseMessage to notify incoming WebSocket connection closureWebSocketConnectorException - if any error occurred during the notificationpublic void notifyWebSocketListener(WebSocketConnection webSocketConnection, Throwable throwable) throws WebSocketConnectorException
WebSocketConnectorFuturenotifyWebSocketListener in interface WebSocketConnectorFuturewebSocketConnection - WebSocketConnection which causes the errorthrowable - Throwable error occurredWebSocketConnectorException - if any error occurred during the notificationpublic void notifyWebSocketIdleTimeout(WebSocketControlMessage controlMessage) throws WebSocketConnectorException
WebSocketConnectorFuturenotifyWebSocketIdleTimeout in interface WebSocketConnectorFuturecontrolMessage - Indicate WebSocket connection timeoutWebSocketConnectorException - if any error occurred during notification to the listenerpublic void notifyWebSocketListener(WebSocketConnection webSocketConnection) throws WebSocketConnectorException
WebSocketConnectorFuturenotifyWebSocketListener in interface WebSocketConnectorFuturewebSocketConnection - WebSocketConnection to notify incoming WebSocket connection closureWebSocketConnectorException - if any error occurred during the notificationCopyright © 2022 WSO2. All rights reserved.