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 voidafter()voidonThreadCompletedListener(java.lang.Thread thread, java.lang.Throwable exception)When a thread finish its execution, if using aNotifyingThreadand the class is subscribed, this method is called, with theRunnablewhich corresponds the just finished thread, and theThrowablecontaining the exception (if any exception has benn thrown).voidtestDecreaseConcurrentProcess()voidtestIncreaseConcurrentProcess()-
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 aNotifyingThreadand the class is subscribed, this method is called, with theRunnablewhich corresponds the just finished thread, and theThrowablecontaining the exception (if any exception has benn thrown).Refer to
NotifyingThread.addOnThreadCompletedListener(OnThreadCompletedListener)for getting more information about subscribing classes.- Specified by:
onThreadCompletedListenerin interfaceOnThreadCompletedListener- Overrides:
onThreadCompletedListenerin classAbstractPooling- Parameters:
thread- the thread that has just finished its execution.exception- the exception if happened, elsenull.
-
-