public abstract class AutoCloseWebSocketHandler<T extends AutoCloseable> extends Object implements WebSocketHandler<T>
Constructor and Description |
---|
AutoCloseWebSocketHandler() |
Modifier and Type | Method and Description |
---|---|
void |
onClose(WebSocketClose<T> close) |
void |
onMessage(WebSocketMessage<T> frame) |
abstract T |
onOpen(WebSocket webSocket) |
public abstract T onOpen(WebSocket webSocket) throws Exception
onOpen
in interface WebSocketHandler<T extends AutoCloseable>
Exception
public void onClose(WebSocketClose<T> close) throws Exception
onClose
in interface WebSocketHandler<T extends AutoCloseable>
Exception
public void onMessage(WebSocketMessage<T> frame) throws Exception
onMessage
in interface WebSocketHandler<T extends AutoCloseable>
Exception