public interface WebSocketConnectorFuture
| 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 connectorListener)
Set Connector listener for WebSocket.
|
void setWebSocketConnectorListener(WebSocketConnectorListener connectorListener)
connectorListener - Connector listener for WebSocketvoid notifyWebSocketListener(WebSocketHandshaker webSocketHandshaker) throws WebSocketConnectorException
webSocketHandshaker - WebSocketHandshaker to notify connection initializationWebSocketConnectorException - if any error occurred during the notificationvoid notifyWebSocketListener(WebSocketTextMessage textMessage) throws WebSocketConnectorException
textMessage - WebSocketTextMessage to notify incoming WebSocket text messageWebSocketConnectorException - if any error occurred during the notificationvoid notifyWebSocketListener(WebSocketBinaryMessage binaryMessage) throws WebSocketConnectorException
binaryMessage - WebSocketBinaryMessage to notify incoming WebSocket binary messageWebSocketConnectorException - if any error occurred during the notificationvoid notifyWebSocketListener(WebSocketControlMessage controlMessage) throws WebSocketConnectorException
controlMessage - WebSocketControlMessage to Notify incoming WebSocket pong messageWebSocketConnectorException - if any error occurred during the notificationvoid notifyWebSocketListener(WebSocketCloseMessage closeMessage) throws WebSocketConnectorException
closeMessage - WebSocketCloseMessage to notify incoming WebSocket connection closureWebSocketConnectorException - if any error occurred during the notificationvoid notifyWebSocketListener(WebSocketConnection webSocketConnection) throws WebSocketConnectorException
webSocketConnection - WebSocketConnection to notify incoming WebSocket connection closureWebSocketConnectorException - if any error occurred during the notificationvoid notifyWebSocketListener(WebSocketConnection webSocketConnection, Throwable throwable) throws WebSocketConnectorException
webSocketConnection - WebSocketConnection which causes the errorthrowable - Throwable error occurredWebSocketConnectorException - if any error occurred during the notificationvoid notifyWebSocketIdleTimeout(WebSocketControlMessage controlMessage) throws WebSocketConnectorException
controlMessage - Indicate WebSocket connection timeoutWebSocketConnectorException - if any error occurred during notification to the listenerCopyright © 2022 WSO2. All rights reserved.