public void add ( StatefulBeanO beanO ) { BeanId id = beanO . beanId ; TimeoutElement elt = beanO . ivTimeoutElement ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "add " + beanO . beanId + ", " + elt . timeout ) ; // LIDB2775-23.4 Begins Object obj = ivStatefulBeanList . put ( id , elt ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , ( obj != null ) ? "Stateful bean information replaced" : "Stateful bean information added" ) ; // LIDB2775-23.4 Ends synchronized ( this ) { if ( numObjects == 0 && ! ivIsCanceled ) // F743-33394 { startAlarm ( ) ; } numObjects ++ ; numAdds ++ ; } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "add" ) ; }
Add a new bean to the list of beans to be checked for timeouts