Search Results for

    Show / Hide Table of Contents

    Class TickTimeTokenBucket

    Default implementation of Akka.Util.TokenBucket that uses Ticks as the time source.

    Inheritance
    object
    TokenBucket
    TickTimeTokenBucket
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Util
    Assembly: Akka.dll
    Syntax
    public sealed class TickTimeTokenBucket : TokenBucket

    Constructors

    | Edit this page View Source

    TickTimeTokenBucket(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 Source

    CurrentTime

    Gets the current system time in ticks.

    Declaration
    public override long CurrentTime { get; }
    Property Value
    Type Description
    long
    Overrides
    Akka.Util.TokenBucket.CurrentTime

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET