@ Deprecated public List < ServerDescription > getAnyPrimaryOrSecondary ( final TagSet tagSet ) { return getServersByPredicate ( new Predicate ( ) { public boolean apply ( final ServerDescription serverDescription ) { return ( serverDescription . isPrimary ( ) || serverDescription . isSecondary ( ) ) && serverDescription . hasTags ( tagSet ) ; } } ) ; }
Gets a list of all the primaries and secondaries in this cluster that match the given replica set tags .