public boolean validate ( ) { boolean rv = true ; synchronized ( list ) { for ( Pooled < T > t : list ) { if ( ! creator . isValid ( t . content ) ) { rv = false ; t . toss ( ) ; list . remove ( t ) ; } } } return rv ; }
This function will validate whether the Objects are still in a usable state . If not they are tossed from the Pool . This is valuable to have when Remote Connections go down and there is a question on whether the Pooled Objects are still functional .