Companion

object Companion

Properties

Link copied to clipboard
const val DEFAULT_MAX_ATTEMPTS: Int = 3

The default number of maximum attempts for new config instances

Functions

Link copied to clipboard

Creates a new default configuration instance. A new instance is returned for each method call so that a single token bucket isn't shared across all instances. Callers that desire shared token bucket scopes should pass an explicit token bucket instance.