com.atlassian.cache
Class TestThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.atlassian.cache.TestThread
All Implemented Interfaces:
Runnable

public abstract class TestThread
extends Thread

A test thread built especially for multi-threaded concurrency testing.

Since:
v2.4.5

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestThread(String name)
           
 
Method Summary
protected abstract  void go()
           
 void run()
           
static void runTest(TestThread... threads)
           
 
Methods inherited from class java.lang.Thread
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, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestThread

public TestThread(String name)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

go

protected abstract void go()
                    throws Exception
Throws:
Exception

runTest

public static void runTest(TestThread... threads)


Copyright © 2015 Atlassian. All rights reserved.