php-amqplib

PCNTLHeartbeatSender extends AbstractSignalHeartbeatSender
in package

Manages pcntl-based heartbeat sending for a {@link AbstractConnection}.

Tags
see
AbstractSignalHeartbeatSender

This version of a signal based heartbeat sendler relies on using SIGALRM and uses the OS to trigger an alarm after a given time.

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

Methods

handleSignal()

Handles the heartbeat when a signal interrupt is received

protected handleSignal(int $interval) : void
Parameters
$interval : int
Return values
void

registerListener()

private registerListener(int $interval) : void
Parameters
$interval : int
Return values
void

Search results