public class ThreadsThreadHolder extends Object implements ThreadHolder
TIMING_ERROR| Constructor and Description |
|---|
ThreadsThreadHolder(String description,
long timeLimitNS,
LongSupplier timeSupplier,
Supplier<Thread> threadSupplier,
BooleanSupplier logEnabled,
Consumer<String> logConsumer) |
| 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 ThreadsThreadHolder(String description, long timeLimitNS, LongSupplier timeSupplier, Supplier<Thread> threadSupplier, BooleanSupplier logEnabled, Consumer<String> logConsumer)
public boolean isAlive()
throws net.openhft.chronicle.core.threads.InvalidEventHandlerException
isAlive in interface ThreadHoldernet.openhft.chronicle.core.threads.InvalidEventHandlerExceptionpublic void resetTimers()
resetTimers 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 monitorThreadDelayed(long actionCallDelayNS)
monitorThreadDelayed 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 ThreadHolderCopyright © 2024. All rights reserved.