public StaticThrottlePolicy setMaxPendingCount(int maxCount) {
        maxPendingCount = maxCount;
        return this;
    }
Sets the maximum number of pending messages allowed.

@param maxCount The max count
@return this, to allow chaining
messagebus/src/main/java/com/yahoo/messagebus/StaticThrottlePolicy.java