public static BufferRecycler instance ( ) { SoftReference < BufferRecycler > ref = recyclerRef . get ( ) ; BufferRecycler bufferRecycler ; if ( ref == null ) { bufferRecycler = null ; } else { bufferRecycler = ref . get ( ) ; } if ( bufferRecycler == null ) { bufferRecycler = new BufferRecycler ( ) ; recyclerRef . set ( new SoftReference < BufferRecycler > ( bufferRecycler ) ) ; } return bufferRecycler ; }
Accessor to get thread - local recycler instance