T - the data typepublic interface INettyReaderCallback<T>
NettySocketServer has received data.| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getType() |
default void |
onActive(io.netty.channel.ChannelHandlerContext ctx)
You have the option to be told upon the activation of a peer.
|
default void |
onInactive(io.netty.channel.ChannelHandlerContext ctx)
You have the option to be told upon the closing of the peer.
|
void |
onReceive(io.netty.channel.ChannelHandlerContext ctx,
INettyTuple<T> data)
Called when a
NettySocketServer has received data. |
default void |
onThrowable(Throwable evt)
You have the option to catch underlying exception thrown by netty,
such as SSL exceptions.
|
default void onActive(io.netty.channel.ChannelHandlerContext ctx)
ctx - the channel handler contextdefault void onInactive(io.netty.channel.ChannelHandlerContext ctx)
ctx - the channel handler contextvoid onReceive(io.netty.channel.ChannelHandlerContext ctx,
INettyTuple<T> data)
NettySocketServer has received data.ctx - the receiving channel context .data - the received data.default void onThrowable(Throwable evt)
evt - the exceptionClass<?> getType()
Copyright © 2023. All rights reserved.