Package com.arcadedb.server.http.ws
Class WebSocketReceiveListener
- java.lang.Object
-
- io.undertow.websockets.core.AbstractReceiveListener
-
- com.arcadedb.server.http.ws.WebSocketReceiveListener
-
- All Implemented Interfaces:
EventListener
,org.xnio.ChannelListener<io.undertow.websockets.core.WebSocketChannel>
public class WebSocketReceiveListener extends io.undertow.websockets.core.AbstractReceiveListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebSocketReceiveListener.ACTION
-
Constructor Summary
Constructors Constructor Description WebSocketReceiveListener(HttpServer httpServer, WebSocketEventBus webSocketEventBus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onClose(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.StreamSourceFrameChannel frameChannel)
protected void
onFullTextMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage textMessage)
-
Methods inherited from class io.undertow.websockets.core.AbstractReceiveListener
bufferFullMessage, getMaxBinaryBufferSize, getMaxCloseBufferSize, getMaxPingBufferSize, getMaxPongBufferSize, getMaxTextBufferSize, handleEvent, onBinary, onCloseMessage, onError, onFullBinaryMessage, onFullCloseMessage, onFullPingMessage, onFullPongMessage, onPing, onPong, onText
-
-
-
-
Constructor Detail
-
WebSocketReceiveListener
public WebSocketReceiveListener(HttpServer httpServer, WebSocketEventBus webSocketEventBus)
-
-
Method Detail
-
onFullTextMessage
protected void onFullTextMessage(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.BufferedTextMessage textMessage) throws IOException
- Overrides:
onFullTextMessage
in classio.undertow.websockets.core.AbstractReceiveListener
- Throws:
IOException
-
onClose
protected void onClose(io.undertow.websockets.core.WebSocketChannel channel, io.undertow.websockets.core.StreamSourceFrameChannel frameChannel) throws IOException
- Overrides:
onClose
in classio.undertow.websockets.core.AbstractReceiveListener
- Throws:
IOException
-
-