Class DatagramIoHandlerImpl
java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.core.manager.AbstractManager
com.tenio.core.network.zero.handler.implement.AbstractIoHandler
com.tenio.core.network.zero.handler.implement.DatagramIoHandlerImpl
- All Implemented Interfaces:
BaseIoHandler
,DatagramIoHandler
The implementation for datagram IO handler.
-
Field Summary
Fields inherited from class com.tenio.core.network.zero.handler.implement.AbstractIoHandler
networkReaderStatistic, sessionManager
Fields inherited from class com.tenio.core.manager.AbstractManager
eventManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
channelException
(DatagramChannel datagramChannel, Exception exception) void
channelRead
(DatagramChannel datagramChannel, SocketAddress remoteAddress, byte[] binary) static DatagramIoHandler
newInstance
(EventManager eventManager) void
sessionException
(Session session, Exception exception) void
sessionRead
(Session session, byte[] binary) Methods inherited from class com.tenio.core.network.zero.handler.implement.AbstractIoHandler
setNetworkReaderStatistic, setSessionManager
Methods inherited from class com.tenio.common.logger.SystemLogger
debug, trace, trace
Methods inherited from class com.tenio.common.logger.AbstractLogger
buildgen, error, error, info, info, info, info, info, info, info, info
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tenio.core.network.zero.handler.BaseIoHandler
setNetworkReaderStatistic, setSessionManager
-
Method Details
-
newInstance
-
channelRead
public void channelRead(DatagramChannel datagramChannel, SocketAddress remoteAddress, byte[] binary) - Specified by:
channelRead
in interfaceDatagramIoHandler
-
sessionRead
- Specified by:
sessionRead
in interfaceDatagramIoHandler
-
channelException
- Specified by:
channelException
in interfaceDatagramIoHandler
-
sessionException
- Specified by:
sessionException
in interfaceDatagramIoHandler
-