TokenBucket

org.http4s.server.middleware.Throttle$.TokenBucket
See theTokenBucket companion object
trait TokenBucket[F[_]]

A token bucket for use with the Throttle middleware. Consumers can take tokens which will be refilled over time. Implementations are required to provide their own refill mechanism.

Possible implementations include a remote TokenBucket service to coordinate between different application instances.

Attributes

Companion:
object
Source:
Throttle.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

Concrete methods

def mapK[G[_]](fk: FunctionK[F, G]): TokenBucket[G]

Attributes

Source:
Throttle.scala