@ChannelHandler.Sharable
public class WebSocketHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.stomp.StompFrame>
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
HEART_BEAT_SPAN |
| 构造器和说明 |
|---|
WebSocketHandler(ApiAuthentication authentication,
ApiComposeCallback callback) |
WebSocketHandler(ApiAuthentication authentication,
ApiComposeCallback callback,
int sendInterval,
int receiveInterval) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.stomp.StompFrame frame) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic static final int HEART_BEAT_SPAN
public WebSocketHandler(ApiAuthentication authentication, ApiComposeCallback callback)
public WebSocketHandler(ApiAuthentication authentication, ApiComposeCallback callback, int sendInterval, int receiveInterval)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive 在接口中 io.netty.channel.ChannelInboundHandlerchannelActive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelInactive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelInactive 在接口中 io.netty.channel.ChannelInboundHandlerchannelInactive 在类中 io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.stomp.StompFrame frame)
throws Exception
channelRead0 在类中 io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.stomp.StompFrame>Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 io.netty.channel.ChannelInboundHandlerAdapterCopyright © 2022. All rights reserved.