public class ThreadTimeCounter extends Thread implements ICounter, IMonitorOpenNode, IMonitorInitialize
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ThreadTimeCounter(long duration) |
Modifier and Type | Method and Description |
---|---|
void |
afterInitialize() |
void |
afterOpenNode() |
void |
beforeInitialize() |
void |
beforeOpenNode() |
long |
getLimitValue() |
void |
init() |
boolean |
isReached() |
void |
overrideLimit(long newLimit) |
void |
reset() |
void |
run() |
void |
setAction(ICounterAction action) |
String |
toString() |
void |
update() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yield
public long getLimitValue()
getLimitValue
in interface ICounter
public void overrideLimit(long newLimit)
overrideLimit
in interface ICounter
public void beforeOpenNode()
beforeOpenNode
in interface IMonitorOpenNode
public void afterOpenNode()
afterOpenNode
in interface IMonitorOpenNode
public void beforeInitialize()
beforeInitialize
in interface IMonitorInitialize
public void afterInitialize()
afterInitialize
in interface IMonitorInitialize
public void setAction(ICounterAction action)
Copyright © 2015. All rights reserved.