public boolean add ( Object o ) { synchronized ( pool ) { if ( index < pool . length ) { pool [ index ++ ] = o ; // if (DEBUG && tc.isDebugEnabled() ) // Tr.debug(tc,"added to pool " + name + " at " + index); return true ; } } // if (DEBUG && tc.isDebugEnabled() ) // Tr.debug(tc,"pool " + name + " is full"); return false ; }
Returns true if the object was added back to the pool