public int getExactSubsSize ( String topicExpression ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "getExactSubsSize" , topicExpression ) ; int numSubs = 0 ; // Test whether table is now empty if ( ! _registeredExactConsumerMonitors . isEmpty ( ) ) { if ( _registeredExactConsumerMonitors . containsKey ( topicExpression ) ) { RegisteredCallbacks rMonitor = ( RegisteredCallbacks ) _registeredExactConsumerMonitors . get ( topicExpression ) ; // Get the list of matching consumers ArrayList consumerList = rMonitor . getMatchingConsumers ( ) ; if ( consumerList != null && ! consumerList . isEmpty ( ) ) { numSubs = consumerList . size ( ) ; } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "getExactSubsSize" , new Integer ( numSubs ) ) ; return numSubs ; }
Methods for integrity checks - used in unit testing