question: synchronized boolean expire ( long threshold ) { Iterator < ConnectionDesc > iter = conns . iterator ( ) ; ConnectionDesc entry ; while ( iter . hasNext ( ) ) { entry = iter . next ( ) ; if ( entry . expire ( threshold ) ) { d ( "expire(): removing " , entry ) ; td ( "Expired " , entry ) ; iter . remove ( ) ; } } return conns . isEmpty ( ) ; }
target:  Goes through all entries in list, removes and closes ones that have been idle before threshold.