addLimit

fun addLimit(limit: BandwidthBuilder.BandwidthBuilderCapacityStage.() -> BandwidthBuilder.BandwidthBuilderBuildStage)(source)

Adds a bandwidth limit to the bucket. See the Bucket4j documentation on Bandwidths for more information.


fun addLimit(bandwidth: Bandwidth)(source)

Deprecated

This method is deprecated, you should use `addLimit { ... }`

Adds a bandwidth limit to the bucket. See the Bucket4j documentation on Bandwidths for more information.