Preparing search index...
The search index is not available
Aleph Indexer Framework for Solana/Ethereum/BSC
Aleph Indexer Framework for Solana/Ethereum/BSC
Indexer Core
Utils
AccurateRateLimit
Class AccurateRateLimit
Hierarchy
AccurateRateLimit
Implements
RateLimitI
Index
Constructors
constructor
Properties
completed
Requests
completed
Requests
Weight
config
total
Weight
Methods
_get
Add
Item
Id
add
check
next
Try
sub
update
Constructors
constructor
new
Accurate
Rate
Limit
(
config
:
AccurateRateLimitConfigI
)
:
AccurateRateLimit
Parameters
config:
AccurateRateLimitConfigI
Returns
AccurateRateLimit
Properties
Protected
completed
Requests
completed
Requests
:
number
[]
= []
Protected
completed
Requests
Weight
completed
Requests
Weight
:
Record
<
number
,
number
>
= {}
Protected
config
config
:
AccurateRateLimitConfigI
Protected
total
Weight
total
Weight
:
number
= 0
Methods
Protected
_get
Add
Item
Id
_get
Add
Item
Id
(
now
:
number
)
:
number
Parameters
now:
number
Returns
number
add
add
(
now
:
number
, weight
?:
number
)
:
void
Parameters
now:
number
weight:
number
= 1
Returns
void
check
check
(
now
:
number
, weight
?:
number
)
:
boolean
Parameters
now:
number
weight:
number
= 1
Returns
boolean
next
Try
next
Try
(
now
:
number
, weight
?:
number
)
:
number
Parameters
now:
number
weight:
number
= 1
Returns
number
sub
sub
(
now
:
number
, weight
?:
number
)
:
void
Parameters
now:
number
weight:
number
= 1
Returns
void
Protected
update
update
(
now
:
number
)
:
void
Parameters
now:
number
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
Modules
Aleph
Indexer
Framework for
Solana/
Ethereum/BSC
Bsc
Indexer
Framework
Ethereum
Indexer
Framework
Indexer
Core
Utils
Indexer
Framework
Solana
Indexer
Framework
buffer
Layouts
Accurate
Rate
Limit
constructor
completed
Requests
completed
Requests
Weight
config
total
Weight
_get
Add
Item
Id
add
check
next
Try
sub
update
Generated using
TypeDoc