Class Joiner


  • public class Joiner
    extends java.lang.Object
    class used by default helper to implement join dependencies between threads
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Joiner.Status
      status values returned from child add method
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.Thread> children  
      private int max  
      private java.lang.Thread parent  
    • Constructor Summary

      Constructors 
      Constructor Description
      Joiner​(int max)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Joiner.Status addChild​(java.lang.Thread thread)  
      int getMax()  
      boolean joinChildren​(java.lang.Thread thread, long millis)  
      • Methods inherited from class java.lang.Object

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

      • children

        private java.util.List<java.lang.Thread> children
      • max

        private int max
      • parent

        private java.lang.Thread parent
    • Constructor Detail

      • Joiner

        public Joiner​(int max)
    • Method Detail

      • getMax

        public int getMax()
      • addChild

        public Joiner.Status addChild​(java.lang.Thread thread)
      • joinChildren

        public boolean joinChildren​(java.lang.Thread thread,
                                    long millis)