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