HEARTBEAT_TYPE - 心跳包类型public abstract class AbstractHeartbeatService<HEARTBEAT_TYPE> extends AbstractService implements IHeartbeatService<HEARTBEAT_TYPE>
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
AbstractHeartbeatService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doService()
由子类实现具体服务处理逻辑
|
protected boolean |
doStart() |
protected IClient<?,?> |
getClient() |
void |
initialize(IClient<?,?> client)
初始化
|
close, doInit, interrupt, isInitialized, isStarted, run, startactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetHeartbeatPacketisInitialized, isStarted, startprotected IClient<?,?> getClient()
public void initialize(IClient<?,?> client)
IServiceinitialize in interface IServiceclient - 指定所属容器参数对象protected boolean doStart()
doStart in class AbstractServiceprotected void doService()
AbstractServicedoService in class AbstractServiceCopyright © 2022. All rights reserved.