public synchronized Iterator sendListenerIterator ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( this , tc , "sendListenerIterator" ) ; final LinkedList < SendListener > linkedList = new LinkedList < SendListener > ( ) ; final Iterator iterator = table . values ( ) . iterator ( ) ; while ( iterator . hasNext ( ) ) { final RequestIdTableEntry tableEntry = ( RequestIdTableEntry ) iterator . next ( ) ; if ( tableEntry . sendListener != null ) linkedList . add ( tableEntry . sendListener ) ; } final Iterator result = linkedList . iterator ( ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( this , tc , "sendListenerIterator" , result ) ; return result ; }
Returns an iterator which iterates over the send listeners in the table .