Class AbstractPooling

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractPooling()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void before()  
      ThreadsPooling getThreadsPooling()  
      void onThreadCompletedListener​(java.lang.Thread thread, java.lang.Throwable exception)
      When a thread finish its execution, if using a NotifyingThread and the class is subscribed, this method is called, with the Runnable which corresponds the just finished thread, and the Throwable containing the exception (if any exception has benn thrown).
      protected java.lang.Runnable target​(int value)  
      void test()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractPooling

        public AbstractPooling()
    • Method Detail

      • before

        public void before()
      • target

        protected java.lang.Runnable target​(int value)
      • test

        public void test()
      • onThreadCompletedListener

        public void onThreadCompletedListener​(@NotNull
                                              java.lang.Thread thread,
                                              @Nullable
                                              java.lang.Throwable exception)
        When a thread finish its execution, if using a NotifyingThread and the class is subscribed, this method is called, with the Runnable which corresponds the just finished thread, and the Throwable 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 interface OnThreadCompletedListener
        Parameters:
        thread - the thread that has just finished its execution.
        exception - the exception if happened, else null.