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