@ChannelHandler.Sharable public class AuthorizeHandler extends io.netty.channel.ChannelInboundHandlerAdapter implements Disconnectable
| Constructor and Description |
|---|
AuthorizeHandler(String connectPath,
CancelableScheduler scheduler,
Configuration configuration,
NamespacesHub namespacesHub,
StoreFactory storeFactory,
DisconnectableHub disconnectable,
AckManager ackManager,
ClientsBox clientsBox) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelActive(io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
connect(ClientHead client) |
void |
connect(UUID sessionId) |
void |
onDisconnect(ClientHead client) |
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic AuthorizeHandler(String connectPath, CancelableScheduler scheduler, Configuration configuration, NamespacesHub namespacesHub, StoreFactory storeFactory, DisconnectableHub disconnectable, AckManager ackManager, ClientsBox clientsBox)
public void channelActive(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
channelActive in interface io.netty.channel.ChannelInboundHandlerchannelActive in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void connect(UUID sessionId)
public void connect(ClientHead client)
public void onDisconnect(ClientHead client)
onDisconnect in interface DisconnectableCopyright © 2012–2021. All rights reserved.