public class HeartbeatHandler extends AbstractDatagramHandler
| Constructor and Description |
|---|
HeartbeatHandler(ITimer timer,
long beatPeriod,
long downPeriod) |
HeartbeatHandler(SocketAddress remoteAddress,
ITimer timer,
long beatPeriod,
long downPeriod) |
| Modifier and Type | Method and Description |
|---|---|
void |
event(SessionEvent event) |
ISessionConfig |
getConfig() |
ISessionStructureFactory |
getFactory() |
void |
read(byte[] data) |
void |
read(Object msg) |
void |
read(SocketAddress remoteAddress,
byte[] datagram) |
void |
read(SocketAddress remoteAddress,
Object msg) |
void |
timer(Runnable task) |
event, getSession, read, setSessionevent, exception, getName, incident, read, timerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevent, exception, getName, incident, read, timerreadpublic HeartbeatHandler(ITimer timer, long beatPeriod, long downPeriod)
public HeartbeatHandler(SocketAddress remoteAddress, ITimer timer, long beatPeriod, long downPeriod)
public void read(byte[] data)
read in interface IHandlerread in interface IDatagramReaderread in class AbstractHandlerpublic void read(SocketAddress remoteAddress, byte[] datagram)
read in interface IDatagramHandlerread in interface IDatagramReaderread in class AbstractDatagramHandlerpublic void read(Object msg)
public void read(SocketAddress remoteAddress, Object msg)
public void event(SessionEvent event)
event in interface IHandlerevent in class AbstractHandlerpublic void timer(Runnable task)
timer in interface IHandlertimer in class AbstractHandlerpublic ISessionConfig getConfig()
getConfig in interface IHandlergetConfig in class AbstractHandlerpublic ISessionStructureFactory getFactory()
getFactory in interface IHandlergetFactory in class AbstractHandlerCopyright © 2017–2024 SNF4J.ORG. All rights reserved.