public synchronized List < TickRange > getAllMessageItemsOnStream ( boolean includeUncommitted ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "getAllMessageItemsOnStream" , Boolean . valueOf ( includeUncommitted ) ) ; List < TickRange > msgs = new LinkedList < TickRange > ( ) ; oststream . setCursor ( 0 ) ; // Get the first TickRange TickRange tr = oststream . getNext ( ) ; while ( tr . endstamp < RangeList . INFINITY ) { if ( tr . type == TickRange . Value ) { //get this msg from the downstream control msgs . add ( ( TickRange ) tr . clone ( ) ) ; } else if ( tr . type == TickRange . Uncommitted && includeUncommitted ) { //get this msg directly if ( tr . value != null ) msgs . add ( ( TickRange ) tr . clone ( ) ) ; } tr = oststream . getNext ( ) ; } // end while if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getAllMessageItemsOnStream" , msgs ) ; return Collections . unmodifiableList ( msgs ) ; }
Get an unmodifiable list of all of the message items in the VALUE state on this stream and optionally in the Uncommitted state