PHP Класс Phergie_Plugin_Ping, phergie

Автор: Phergie Development Team ([email protected])
Наследование: extends Phergie_Plugin_Abstract
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$lastEvent integer Timestamp for the last instance in which an event was received
$lastPing integer Timestamp for the last instance in which a PING was sent

Открытые методы

Метод Описание
getLastEvent ( ) : integer Gets the last event time lastEvent needs exposing for things such as unit testing
getLastPing ( ) : integer Gets the last ping time lastPing needs exposing for things such as unit testing
onConnect ( ) : void Initialize event timestamps upon connecting to the server.
onTick ( ) : void Performs a self ping if the event threshold has been exceeded or issues a termination command if the ping threshold has been exceeded.
preEvent ( ) : void Updates the timestamp since the last received event when a new event arrives. Also, clears the ping time as well.
setLastEvent ( integer | null $event = null ) : self Set the last event time lastEvent needs to be exposed for unit testing
setLastPing ( integer | null $ping = null ) : self Set the last ping time lastPing needs to be exposed for unit testing

Описание методов

getLastEvent() публичный Метод

Gets the last event time lastEvent needs exposing for things such as unit testing
public getLastEvent ( ) : integer
Результат integer timestamp of last ping

getLastPing() публичный Метод

Gets the last ping time lastPing needs exposing for things such as unit testing
public getLastPing ( ) : integer
Результат integer timestamp of last ping

onConnect() публичный Метод

Initialize event timestamps upon connecting to the server.
public onConnect ( ) : void
Результат void

onTick() публичный Метод

Performs a self ping if the event threshold has been exceeded or issues a termination command if the ping threshold has been exceeded.
public onTick ( ) : void
Результат void

preEvent() публичный Метод

Updates the timestamp since the last received event when a new event arrives. Also, clears the ping time as well.
public preEvent ( ) : void
Результат void

setLastEvent() публичный Метод

Set the last event time lastEvent needs to be exposed for unit testing
public setLastEvent ( integer | null $event = null ) : self
$event integer | null timestamp of last ping
Результат self

setLastPing() публичный Метод

Set the last ping time lastPing needs to be exposed for unit testing
public setLastPing ( integer | null $ping = null ) : self
$ping integer | null timestamp of last ping
Результат self

Описание свойств

$lastEvent защищенное свойство

Timestamp for the last instance in which an event was received
protected int $lastEvent
Результат integer

$lastPing защищенное свойство

Timestamp for the last instance in which a PING was sent
protected int $lastPing
Результат integer