public static void clear ( ) { for ( int i = 0 ; i < ByteBufPool . NUMBER_OF_SLABS ; i ++ ) { slabs [ i ] . clear ( ) ; created [ i ] . set ( 0 ) ; reused [ i ] . set ( 0 ) ; } synchronized ( registry ) { registry . clear ( ) ; } }
Clears all of the slabs and stats .