Class AbstractSessionMessageHandler<T>
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.SimpleChannelInboundHandler<T>
-
- be.yildizgames.module.network.netty.server.AbstractSessionMessageHandler<T>
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
- Direct Known Subclasses:
SessionMessageHandler,SessionWebSocketMessageHandler
public abstract class AbstractSessionMessageHandler<T> extends io.netty.channel.SimpleChannelInboundHandler<T>- Author:
- Grégory Van den Borre
-
-
Field Summary
Fields Modifier and Type Field Description protected be.yildizgames.module.network.AbstractHandlerhandler
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractSessionMessageHandler(be.yildizgames.module.network.AbstractHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable e)protected Optional<be.yildizgames.module.network.server.Session>getSession()protected voidsetSession(be.yildizgames.module.network.server.Session session)-
Methods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelRead, channelRead0
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
exceptionCaught
public final void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable e)- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter
-
getSession
protected final Optional<be.yildizgames.module.network.server.Session> getSession()
- Returns:
- The associated session.
-
setSession
protected final void setSession(be.yildizgames.module.network.server.Session session)
-
-