public synchronized String getLastItemsInStore ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getLastItemsInStore" ) ; String lastItems = "" ; // The last item in the store will be at position maxIndex. Dump all the items 100 below that for ( int x = maxIndex ; x > ( maxIndex - 101 ) ; x -- ) { lastItems = " [" + x + "]: " + objectTable [ x ] + "\r\n" + lastItems ; } lastItems = "The last 100 items in the store:\r\n\r\n" + lastItems ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "getLastItemsInStore" ) ; return lastItems ; }
This method can be used to create a String that details the last 100 items added to the store . It is best used at the time when the object store is full to indicate what is taking up all the space in the store .