|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.xenonsoft.bridgetown.test.TestContextCache.AttackerThread
Specialist attacker thread designed to assault the context cache implementation. This thread accepts a list collection of indices (keys) that associate with java.lang.Integer value, The core of the thread iterates through each index and increments the value.
The attacker thread synchronises itself with the context cache object in order to avoid race conditions and ensure atomicity for the increment.
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
TestContextCache.AttackerThread()
Default constructor to get around JUnit test case error |
|
TestContextCache.AttackerThread(java.util.List indexList,
int iterations)
Standard constructor |
|
| Method Summary | |
void |
run()
Execute method |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TestContextCache.AttackerThread()
public TestContextCache.AttackerThread(java.util.List indexList,
int iterations)
| Method Detail |
public void run()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||