LoadLimiter
Class LoadLimiter
Table of Contents
Methods
- finalize() : void
- Saves working time by Background Job
- getLimitTime() : int
- Returns loads time limit per 10 min.
- getResetTime() : int|null
- Returns time to reset limits.
- getRestTime() : float
- Returns methods working time.
- is() : bool
- Checks block by limiter.
- isActive() : bool
- Checks limiter status.
- registerEnding() : void
- Register ending doing method.
- registerStarting() : void
- Register starting doing method.
Methods
finalize()
Saves working time by Background Job
public
static finalize() : void
Tags
getLimitTime()
Returns loads time limit per 10 min.
public
static getLimitTime() : int
Return values
intgetResetTime()
Returns time to reset limits.
public
static getResetTime(mixed $entityType, mixed $entity, mixed $method) : int|null
Parameters
- $entityType : mixed
- $entity : mixed
- $method : mixed
Tags
Return values
int|nullgetRestTime()
Returns methods working time.
public
static getRestTime(mixed $entityType, mixed $entity, mixed $method) : float
Parameters
- $entityType : mixed
- $entity : mixed
- $method : mixed
Tags
Return values
floatis()
Checks block by limiter.
public
static is(mixed $entityType, mixed $entity, mixed $method) : bool
Parameters
- $entityType : mixed
- $entity : mixed
- $method : mixed
Tags
Return values
bool —( true - block, false - don't block)
isActive()
Checks limiter status.
public
static isActive() : bool
Tags
Return values
boolregisterEnding()
Register ending doing method.
public
static registerEnding(mixed $entityType, mixed $entity, mixed $method) : void
Parameters
- $entityType : mixed
- $entity : mixed
- $method : mixed
registerStarting()
Register starting doing method.
public
static registerStarting(mixed $entityType, mixed $entity, mixed $method) : void
Parameters
- $entityType : mixed
- $entity : mixed
- $method : mixed