Class TickTimeTokenBucket
Default implementation of Akka.Util.TokenBucket that uses Ticks as the time source.
Inherited Members
Namespace: Akka.Util
Assembly: Akka.dll
Syntax
public sealed class TickTimeTokenBucket : TokenBucket
Constructors
| Edit this page View SourceTickTimeTokenBucket(long, long)
Creates a new token bucket that uses system ticks as time source.
Declaration
public TickTimeTokenBucket(long capacity, long period)
Parameters
Type | Name | Description |
---|---|---|
long | capacity | Maximum number of tokens the bucket can hold. |
long | period | Number of ticks between token generation. |
Properties
| Edit this page View SourceCurrentTime
Gets the current system time in ticks.
Declaration
public override long CurrentTime { get; }
Property Value
Type | Description |
---|---|
long |
Overrides
Akka.Util.TokenBucket.CurrentTime