PHP Class pocketmine\event\server\LowMemoryEvent

Inheritance: extends ServerEvent
Show file Open project: ClearSkyTeam/ClearSky

Public Properties

Property Type Description
$handlerList

Public Methods

Method Description
__construct ( $memory, $memoryLimit, $isGlobal = false, $triggerCount )
getMemory ( ) : integer Returns the memory usage at the time of the event call (in bytes)
getMemoryFreed ( ) : integer Amount of memory already freed
getMemoryLimit ( ) : integer Returns the memory limit defined (in bytes)
getTriggerCount ( ) : integer Returns the times this event has been called in the current low-memory state
isGlobal ( ) : boolean

Method Details

__construct() public method

public __construct ( $memory, $memoryLimit, $isGlobal = false, $triggerCount )

getMemory() public method

Returns the memory usage at the time of the event call (in bytes)
public getMemory ( ) : integer
return integer

getMemoryFreed() public method

Amount of memory already freed
public getMemoryFreed ( ) : integer
return integer

getMemoryLimit() public method

Returns the memory limit defined (in bytes)
public getMemoryLimit ( ) : integer
return integer

getTriggerCount() public method

Returns the times this event has been called in the current low-memory state
public getTriggerCount ( ) : integer
return integer

isGlobal() public method

public isGlobal ( ) : boolean
return boolean

Property Details

$handlerList public static property

public static $handlerList