Class NormalPooling
- java.lang.Object
-
- AbstractPooling
-
- NormalPooling
-
- All Implemented Interfaces:
OnThreadCompletedListener
public class NormalPooling extends AbstractPooling implements OnThreadCompletedListener
-
-
Constructor Summary
Constructors Constructor Description NormalPooling()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
after()
void
onThreadCompletedListener(java.lang.Thread thread, java.lang.Throwable exception)
When a thread finish its execution, if using aNotifyingThread
and the class is subscribed, this method is called, with theRunnable
which corresponds the just finished thread, and theThrowable
containing the exception (if any exception has benn thrown).void
testDecreaseConcurrentProcess()
void
testIncreaseConcurrentProcess()
-
Methods inherited from class AbstractPooling
before, getThreadsPooling, target, test
-
-
-
-
Method Detail
-
testIncreaseConcurrentProcess
public void testIncreaseConcurrentProcess()
-
testDecreaseConcurrentProcess
public void testDecreaseConcurrentProcess()
-
after
public void after() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
onThreadCompletedListener
public void onThreadCompletedListener(@NotNull java.lang.Thread thread, @Nullable java.lang.Throwable exception)
When a thread finish its execution, if using aNotifyingThread
and the class is subscribed, this method is called, with theRunnable
which corresponds the just finished thread, and theThrowable
containing the exception (if any exception has benn thrown).Refer to
NotifyingThread.addOnThreadCompletedListener(OnThreadCompletedListener)
for getting more information about subscribing classes.- Specified by:
onThreadCompletedListener
in interfaceOnThreadCompletedListener
- Overrides:
onThreadCompletedListener
in classAbstractPooling
- Parameters:
thread
- the thread that has just finished its execution.exception
- the exception if happened, elsenull
.
-
-