Package ratpack.websocket
Class AutoCloseWebSocketHandler<T extends java.lang.AutoCloseable>
- java.lang.Object
-
- ratpack.websocket.AutoCloseWebSocketHandler<T>
-
- All Implemented Interfaces:
WebSocketHandler<T>
public abstract class AutoCloseWebSocketHandler<T extends java.lang.AutoCloseable> extends java.lang.Object implements WebSocketHandler<T>
-
-
Constructor Summary
Constructors Constructor Description AutoCloseWebSocketHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidonClose(WebSocketClose<T> close)voidonMessage(WebSocketMessage<T> frame)abstract TonOpen(WebSocket webSocket)
-
-
-
Method Detail
-
onOpen
public abstract T onOpen(WebSocket webSocket) throws java.lang.Exception
- Specified by:
onOpenin interfaceWebSocketHandler<T extends java.lang.AutoCloseable>- Throws:
java.lang.Exception
-
onClose
public void onClose(WebSocketClose<T> close) throws java.lang.Exception
- Specified by:
onClosein interfaceWebSocketHandler<T extends java.lang.AutoCloseable>- Throws:
java.lang.Exception
-
onMessage
public void onMessage(WebSocketMessage<T> frame) throws java.lang.Exception
- Specified by:
onMessagein interfaceWebSocketHandler<T extends java.lang.AutoCloseable>- Throws:
java.lang.Exception
-
-