public void sweep ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "Sweep : Stateful Beans = " + ivStatefulBeanList . size ( ) ) ; for ( Enumeration < TimeoutElement > e = ivStatefulBeanList . elements ( ) ; e . hasMoreElements ( ) ; ) { TimeoutElement elt = e . nextElement ( ) ; // If the bean has timed out, regardless of whether it has been // passivated, or is still in the cache ('active'), go ahead and try // to delete it. d112258 if ( elt . isTimedOut ( ) ) // F61004.5 { deleteBean ( elt . beanId ) ; } } // Sweep failover cache if SFSB failover is enabled. if ( ivSfFailoverCache != null ) //LIDB2018-1 { ivSfFailoverCache . sweep ( ) ; //LIDB2018-1 } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "Sweep : Stateful Beans = " + ivStatefulBeanList . size ( ) ) ; }
Go through the list of bean ids and cleanup beans which have timed out .