public class NtpProtocolHandler extends org.apache.mina.core.service.IoHandlerAdapter
IoHandler.messageReceived(org.apache.mina.core.session.IoSession, java.lang.Object)
method,
which returns the NTP reply. The IoHandler.exceptionCaught(org.apache.mina.core.session.IoSession, java.lang.Throwable)
is also implemented,
all the other methods are handled by the IoHandlerAdapter
class.Constructor and Description |
---|
NtpProtocolHandler() |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(org.apache.mina.core.session.IoSession session,
Throwable cause) |
void |
messageReceived(org.apache.mina.core.session.IoSession session,
Object message) |
public NtpProtocolHandler()
public void exceptionCaught(org.apache.mina.core.session.IoSession session, Throwable cause)
exceptionCaught
in interface org.apache.mina.core.service.IoHandler
exceptionCaught
in class org.apache.mina.core.service.IoHandlerAdapter
public void messageReceived(org.apache.mina.core.session.IoSession session, Object message)
messageReceived
in interface org.apache.mina.core.service.IoHandler
messageReceived
in class org.apache.mina.core.service.IoHandlerAdapter
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.