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
SparseRateLimit
Class SparseRateLimit
Hierarchy
SparseRateLimit
Implements
RateLimitI
Index
Constructors
constructor
Properties
_sparse
Interval
_sparse
Last
Refill
Time
_sparse
Lock
Weight
config
Methods
_check
_update
State
add
check
get
Rate
Limit
Weight
next
Try
sub
Constructors
constructor
new
Sparse
Rate
Limit
(
config
:
SparseRateLimitConfigI
)
:
SparseRateLimit
Parameters
config:
SparseRateLimitConfigI
Returns
SparseRateLimit
Properties
Protected
_sparse
Interval
_sparse
Interval
:
number
= ...
Protected
_sparse
Last
Refill
Time
_sparse
Last
Refill
Time
:
number
= 0
Protected
_sparse
Lock
Weight
_sparse
Lock
Weight
:
number
= 0
Protected
config
config
:
SparseRateLimitConfigI
Methods
Protected
_check
_check
(
)
:
boolean
Returns
boolean
Protected
_update
State
_update
State
(
now
:
number
)
:
void
Parameters
now:
number
Returns
void
add
add
(
now
:
number
, weight
?:
number
)
:
void
Parameters
now:
number
weight:
number
= 1
Returns
void
check
check
(
now
:
number
)
:
boolean
Parameters
now:
number
Returns
boolean
get
Rate
Limit
Weight
get
Rate
Limit
Weight
(
weight
?:
number
)
:
number
Parameters
weight:
number
= 1
Returns
number
next
Try
next
Try
(
now
:
number
)
:
number
Parameters
now:
number
Returns
number
sub
sub
(
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
Sparse
Rate
Limit
constructor
_sparse
Interval
_sparse
Last
Refill
Time
_sparse
Lock
Weight
config
_check
_update
State
add
check
get
Rate
Limit
Weight
next
Try
sub
Generated using
TypeDoc