- java.lang.Object
-
- com.appslandia.common.base.InitializeObject
-
- com.appslandia.common.base.ThreadSafeTester
-
- All Implemented Interfaces:
InitializeSupport
public abstract class ThreadSafeTester extends InitializeObject
- Author:
- Loc Ha
-
-
Constructor Summary
Constructors Constructor Description ThreadSafeTester()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcountDown()ThreadSafeTesterexecuteThenAwait()ThreadSafeTesterexecuteThenAwait(long timeout, TimeUnit unit)protected voidinit()protected abstract RunnablenewTask()ThreadSafeTestertasks(int tasks)ThreadSafeTesterthreads(int threads)-
Methods inherited from class com.appslandia.common.base.InitializeObject
assertNotInitialized, destroy, initialize
-
-
-
-
Method Detail
-
init
protected void init() throws Exception- Specified by:
initin classInitializeObject- Throws:
Exception
-
tasks
public ThreadSafeTester tasks(int tasks)
-
threads
public ThreadSafeTester threads(int threads)
-
newTask
protected abstract Runnable newTask()
-
executeThenAwait
public ThreadSafeTester executeThenAwait()
-
executeThenAwait
public ThreadSafeTester executeThenAwait(long timeout, TimeUnit unit)
-
countDown
protected void countDown()
-
-