public void reset ( ) { w . lock ( ) ; try { for ( JedisPool pool : nodes . values ( ) ) { try { if ( pool != null ) { pool . destroy ( ) ; } } catch ( Exception e ) { // pass } } nodes . clear ( ) ; slots . clear ( ) ; } finally { w . unlock ( ) ; } }
Clear discovered nodes collections and gently release allocated resources