public boolean remove ( BeanId id ) // d129562 { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "remove (" + id + ")" ) ; TimeoutElement elt = null ; elt = ivStatefulBeanList . remove ( id ) ; synchronized ( this ) { if ( elt != null ) { numObjects -- ; numRemoves ++ ; if ( numObjects == 0 ) { // F743-33394 stopAlarm ( ) ; } } else { numNullRemoves ++ ; } } boolean result = elt != null ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "remove (" + result + ")" ) ; return result ; // d129562 }
Remove a bean from the list and return true if the bean was in the list and removed successfully ; otherwise return false .