7.2.3. Set Sender Capacity

In Python, the sender capacity is set by assigning a value to the capacity property of a sender. In C++, the sender capacity is set using the setCapacity method.
Python
sender.capacity = 20
C++
sender.setCapacity(20)