private LocalThreadObjectPool getThreadLocalObjectPool ( ) { if ( threadPoolSize <= 0 ) { // no local thread pool needed. return null ; } LocalThreadObjectPool localPool = null ; if ( threadLocals != null ) { localPool = threadLocals . get ( ) ; if ( localPool == null ) { localPool = new LocalThreadObjectPool ( threadPoolSize , null , destroyer ) ; // @PK36998C threadLocals . set ( localPool ) ; localPool . setCleanUpOld ( cleanUpOld ) ; } } return localPool ; }
get a local thread specific pool . To be used for threads that frequently access this pool system .