TokenBucket

org.apache.pekko.remote.transport.ThrottlerTransportAdapter$.TokenBucket
final case class TokenBucket(capacity: Int, tokensPerSecond: Double, nanoTimeOfLastSend: Long, availableTokens: Int) extends ThrottleMode

Attributes

Source
ThrottlerTransportAdapter.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait ThrottleMode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def timeToAvailable(currentNanoTime: Long, tokens: Int): FiniteDuration

Attributes

Definition Classes
Source
ThrottlerTransportAdapter.scala
override def tryConsumeTokens(nanoTimeOfSend: Long, tokens: Int): (ThrottleMode, Boolean)

Attributes

Definition Classes
Source
ThrottlerTransportAdapter.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product