PCNTLHeartbeatSender
extends AbstractSignalHeartbeatSender
in package
Manages pcntl-based heartbeat sending for a {@link AbstractConnection}.
Tags
Table of Contents
- $connection : AbstractConnection|null
- $wasActive : bool
- __construct() : mixed
- __destruct() : mixed
- register() : void
- Starts the heartbeats
- unregister() : void
- Stops the heartbeats.
- handleSignal() : void
- Handles the heartbeat when a signal interrupt is received
- isSupported() : bool
- registerListener() : void
Properties
$connection
protected
AbstractConnection|null
$connection
$wasActive
protected
bool
$wasActive
= false
Methods
__construct()
public
__construct(AbstractConnection $connection) : mixed
Parameters
- $connection : AbstractConnection
Tags
Return values
mixed —__destruct()
public
__destruct() : mixed
Return values
mixed —register()
Starts the heartbeats
public
register() : void
Return values
void —unregister()
Stops the heartbeats.
public
unregister() : void
Return values
void —handleSignal()
Handles the heartbeat when a signal interrupt is received
protected
handleSignal(int $interval) : void
Parameters
- $interval : int
Return values
void —isSupported()
protected
isSupported() : bool
Return values
bool —registerListener()
private
registerListener(int $interval) : void
Parameters
- $interval : int