HEARTBEAT_TYPE
- 心跳包类型public abstract class AbstractHeartbeatService<HEARTBEAT_TYPE> extends AbstractService implements IHeartbeatService<HEARTBEAT_TYPE>
Thread.State, Thread.UncaughtExceptionHandler
MAX_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, start
activeCount, 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, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHeartbeatPacket
isInitialized, isStarted, start
protected IClient<?,?> getClient()
public void initialize(IClient<?,?> client)
IService
initialize
in interface IService
client
- 指定所属容器参数对象protected boolean doStart()
doStart
in class AbstractService
protected void doService()
AbstractService
doService
in class AbstractService
Copyright © 2022. All rights reserved.