added method to wrong connection class
Merge pull request #1277 from dkavanagh/setdesiredcapacity

added method to wrong connection class