Throttex.Core.Journal (throttex v0.1.0)
Summary
Types
@type t() :: %Throttex.Core.Journal{ id: term(), limit: non_neg_integer(), period: non_neg_integer(), period_start_time: nil | non_neg_integer(), release_after: nil | non_neg_integer(), releases: [Throttex.Types.release()], requests: [Throttex.Types.request()] }
Functions
@spec add_release(t(), Throttex.Types.timestamp()) :: t()
@spec add_request(t(), Throttex.Types.request()) :: t()
@spec count_pending_requests(t()) :: non_neg_integer()
@spec count_releases_in_period(t()) :: non_neg_integer()
@spec new(Throttex.Rate.t()) :: t()
@spec update_period(t(), Throttex.Types.timestamp()) :: t()