protected List < ConsumerHolder > filterConsumersForEnabledFlag ( boolean enabled ) { List < ConsumerHolder > consumerHolderSubList = new LinkedList < ConsumerHolder > ( ) ; for ( ConsumerHolder consumerHolder : consumerHolders ) { if ( consumerHolder . isEnabled ( ) == enabled ) { consumerHolderSubList . add ( consumerHolder ) ; } } return consumerHolderSubList ; }
Filters the consumers matching the given enabled flag from the list of managed consumers .