PocketMine
LowMemoryEvent Class Reference
Inheritance diagram for LowMemoryEvent:
ServerEvent Event

Public Member Functions

 __construct ($memory, $memoryLimit, $isGlobal=false, $triggerCount=0)
 
 getMemory ()
 
 getMemoryLimit ()
 
 getTriggerCount ()
 
 isGlobal ()
 
 getMemoryFreed ()
 
- Public Member Functions inherited from Event
 getEventName ()
 
 getHandlers ()
 

Static Public Attributes

static $handlerList = null
 

Additional Inherited Members

- Protected Attributes inherited from Event
 $eventName = null
 

Detailed Description

Called when the server is in a low-memory state as defined by the properties Plugins should free caches or other non-essential data.

Member Function Documentation

getMemory ( )

Returns the memory usage at the time of the event call (in bytes)

Returns
int
getMemoryFreed ( )

Amount of memory already freed

Returns
int
getMemoryLimit ( )

Returns the memory limit defined (in bytes)

Returns
int
getTriggerCount ( )

Returns the times this event has been called in the current low-memory state

Returns
int
isGlobal ( )
Returns
bool

The documentation for this class was generated from the following file: