Task
About 1 min
Task
Properties
client
public Client $client
name
protected string $name
status
protected int $status
id
protected string $id
tag
public string $tag
start
protected int $start
retries
protected int $retries
expire
protected int $expire
timeout
protected int $timeout
respawn
protected bool $respawn
respawn_delay
protected int $respawn_delay
accessKey
protected string $accessKey
lastHeartbeat
protected int $lastHeartbeat
heartbeats
protected int $heartbeats
restarts
protected int $restarts
subscriptions
private array $subscriptions
__buffer
private string $__buffer
taskIDs
private array $taskIDs
Methods
ready
public ready({Array})
start
public start({Array})
run
public run({Array})
cancel
public cancel({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$expire | int |
status
public status({Array})
expired
public expired({Array})
sendEvent
public sendEvent({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$eventID | string | |
$triggerID | string | |
$data | mixed |
recv
public recv({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$buf | string |
send
public send({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$command | string | |
$payload | mixed |
commandUnsubscribe
public commandUnsubscribe({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$eventID | string |
commandTrigger
public commandTrigger({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$eventID | string | |
$data | mixed | |
$echoClient | bool |
destruct
public destruct({Array})
touch
public touch({Array})
timeout
public timeout({Array})
construct
protected construct({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$data | array |
processPacket
private processPacket({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$buffer | string |
processCommand
private processCommand({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$command | string | |
$payload | mixed |
commandSubscribe
private commandSubscribe({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$eventID | string | |
$filter | array |
commandLog
private commandLog({Array})
Parameters
Parameter | Type | Description |
---|---|---|
$payload | \stdClass |
Generated by Hazaar API Doc Generator