public boolean filterMatches ( AbstractItem item ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "filterMatches" , item ) ; /* Cast the incoming item to a PersistentStoreReferenceStream object. if it is not, an * exception will be thrown and the match will fail */ SIMPReferenceStream rstream ; if ( item instanceof SIMPReferenceStream ) { rstream = ( SIMPReferenceStream ) item ; // Check for matching consumer dispatchers if ( rstream == consumerDispatcher . getReferenceStream ( ) ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "filterMatches" , Boolean . TRUE ) ; return true ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "filterMatches" , Boolean . FALSE ) ; return false ; }
Filter method . Checks whether the given item is a consumerDispatcher and matches the one associated with this filter