public StaticThrottlePolicy setMaxPendingSize(long maxSize) {
        maxPendingSize = maxSize;
        return this;
    }
Sets the maximum total size of pending messages allowed. This size is relative to the value returned by {@link
com.yahoo.messagebus.Message#getApproxSize()}.

@param maxSize The max size.
@return This, to allow chaining.
messagebus/src/main/java/com/yahoo/messagebus/StaticThrottlePolicy.java