public ArrayList getAllCDMatchTargetsForTopicSpace ( String tSpace ) { ArrayList consumerDispatcherList ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getAllCDMatchTargetsForTopicSpace" ) ; // Get from the HashMap, with synch, there may be other accessors synchronized ( _targets ) { consumerDispatcherList = new ArrayList ( _targets . size ( ) ) ; Iterator itr = _targets . keySet ( ) . iterator ( ) ; while ( itr . hasNext ( ) ) { Object key = itr . next ( ) ; if ( key instanceof MatchingConsumerDispatcherWithCriteira ) { ConsumerDispatcher cd = ( ( ( MatchingConsumerDispatcherWithCriteira ) key ) . getConsumerDispatcher ( ) ) ; String storedDest = cd . getDestination ( ) . getName ( ) ; if ( storedDest . equals ( tSpace ) ) { consumerDispatcherList . add ( cd ) ; } } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getAllCDMatchTargetsForTopicSpace" ) ; return consumerDispatcherList ; }
Method getAllCDMatchTargetsForTopicSpace Used to return a list of all ConsumerDispatchers stored in the matchspace for a specific topicspace .