public class EventLoopThreadHolder extends Object implements ThreadHolder
TIMING_ERROR| Constructor and Description |
|---|
EventLoopThreadHolder(long monitorIntervalNS,
CoreEventLoop eventLoop) |
| Modifier and Type | Method and Description |
|---|---|
void |
dumpThread(long startedNS,
long nowNS) |
String |
getName() |
boolean |
isAlive() |
void |
monitorThreadDelayed(long actionCallDelayNS) |
void |
reportFinished() |
void |
resetTimers() |
boolean |
shouldLog(long nowNS) |
long |
startedNS()
Get the
System.nanoTime() at which the currently executing loop iteration started |
protected long |
timingErrorNS() |
long |
timingToleranceNS() |
public EventLoopThreadHolder(long monitorIntervalNS,
CoreEventLoop eventLoop)
public boolean isAlive()
isAlive in interface ThreadHolderpublic void reportFinished()
reportFinished in interface ThreadHolderpublic long startedNS()
ThreadHolderSystem.nanoTime() at which the currently executing loop iteration startedstartedNS in interface ThreadHolderCoreEventLoop.NOT_IN_A_LOOP if no iteration is executingpublic void resetTimers()
resetTimers in interface ThreadHolderpublic boolean shouldLog(long nowNS)
shouldLog in interface ThreadHolderpublic void dumpThread(long startedNS,
long nowNS)
dumpThread in interface ThreadHolderpublic long timingToleranceNS()
timingToleranceNS in interface ThreadHolderprotected long timingErrorNS()
public String getName()
getName in interface ThreadHolderpublic void monitorThreadDelayed(long actionCallDelayNS)
monitorThreadDelayed in interface ThreadHolderCopyright © 2024. All rights reserved.