PHPDaemon/Clients/AMQP/Driver/Protocol/v091/Protocol/Basic/BasicCancelFrame.php 1 location
|
@@ 13-36 (lines=24) @@
|
| 10 |
|
* @author Aleksey I. Kuleshov YOU GLOBAL LIMITED |
| 11 |
|
* @package PHPDaemon\Clients\AMQP\Driver\Protocol\v091\Protocol\Basic |
| 12 |
|
*/ |
| 13 |
|
class BasicCancelFrame implements MethodFrame, OutgoingFrame |
| 14 |
|
{ |
| 15 |
|
const METHOD_ID = 0x003c001e; |
| 16 |
|
|
| 17 |
|
public $frameChannelId = 0; |
| 18 |
|
public $consumerTag; // shortstr |
| 19 |
|
public $nowait = false; // bit |
| 20 |
|
|
| 21 |
|
public static function create( |
| 22 |
|
$consumerTag = null, $nowait = null |
| 23 |
|
) |
| 24 |
|
{ |
| 25 |
|
$frame = new self(); |
| 26 |
|
|
| 27 |
|
if (null !== $consumerTag) { |
| 28 |
|
$frame->consumerTag = $consumerTag; |
| 29 |
|
} |
| 30 |
|
if (null !== $nowait) { |
| 31 |
|
$frame->nowait = $nowait; |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
return $frame; |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
|
PHPDaemon/Clients/AMQP/Driver/Protocol/v091/Protocol/Basic/BasicGetFrame.php 1 location
|
@@ 13-37 (lines=25) @@
|
| 10 |
|
* @author Aleksey I. Kuleshov YOU GLOBAL LIMITED |
| 11 |
|
* @package PHPDaemon\Clients\AMQP\Driver\Protocol\v091\Protocol\Basic |
| 12 |
|
*/ |
| 13 |
|
class BasicGetFrame implements MethodFrame, OutgoingFrame |
| 14 |
|
{ |
| 15 |
|
const METHOD_ID = 0x003c0046; |
| 16 |
|
|
| 17 |
|
public $frameChannelId = 0; |
| 18 |
|
public $reserved1 = 0; // short |
| 19 |
|
public $queue = ''; // shortstr |
| 20 |
|
public $noAck = false; // bit |
| 21 |
|
|
| 22 |
|
public static function create( |
| 23 |
|
$queue = null, $noAck = null |
| 24 |
|
) |
| 25 |
|
{ |
| 26 |
|
$frame = new self(); |
| 27 |
|
|
| 28 |
|
if (null !== $queue) { |
| 29 |
|
$frame->queue = $queue; |
| 30 |
|
} |
| 31 |
|
if (null !== $noAck) { |
| 32 |
|
$frame->noAck = $noAck; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
return $frame; |
| 36 |
|
} |
| 37 |
|
} |
| 38 |
|
|
PHPDaemon/Clients/AMQP/Driver/Protocol/v091/Protocol/Basic/BasicRejectFrame.php 1 location
|
@@ 13-36 (lines=24) @@
|
| 10 |
|
* @author Aleksey I. Kuleshov YOU GLOBAL LIMITED |
| 11 |
|
* @package PHPDaemon\Clients\AMQP\Driver\Protocol\v091\Protocol\Basic |
| 12 |
|
*/ |
| 13 |
|
class BasicRejectFrame implements MethodFrame, OutgoingFrame |
| 14 |
|
{ |
| 15 |
|
const METHOD_ID = 0x003c005a; |
| 16 |
|
|
| 17 |
|
public $frameChannelId = 0; |
| 18 |
|
public $deliveryTag; // longlong |
| 19 |
|
public $requeue = true; // bit |
| 20 |
|
|
| 21 |
|
public static function create( |
| 22 |
|
$deliveryTag = null, $requeue = null |
| 23 |
|
) |
| 24 |
|
{ |
| 25 |
|
$frame = new self(); |
| 26 |
|
|
| 27 |
|
if (null !== $deliveryTag) { |
| 28 |
|
$frame->deliveryTag = $deliveryTag; |
| 29 |
|
} |
| 30 |
|
if (null !== $requeue) { |
| 31 |
|
$frame->requeue = $requeue; |
| 32 |
|
} |
| 33 |
|
|
| 34 |
|
return $frame; |
| 35 |
|
} |
| 36 |
|
} |
| 37 |
|
|
PHPDaemon/Clients/AMQP/Driver/Protocol/v091/Protocol/Queue/QueuePurgeFrame.php 1 location
|
@@ 13-37 (lines=25) @@
|
| 10 |
|
* @author Aleksey I. Kuleshov YOU GLOBAL LIMITED |
| 11 |
|
* @package PHPDaemon\Clients\AMQP\Driver\Protocol\v091\Protocol\Queue |
| 12 |
|
*/ |
| 13 |
|
class QueuePurgeFrame implements MethodFrame, OutgoingFrame |
| 14 |
|
{ |
| 15 |
|
const METHOD_ID = 0x0032001e; |
| 16 |
|
|
| 17 |
|
public $frameChannelId = 0; |
| 18 |
|
public $reserved1 = 0; // short |
| 19 |
|
public $queue = ''; // shortstr |
| 20 |
|
public $nowait = false; // bit |
| 21 |
|
|
| 22 |
|
public static function create( |
| 23 |
|
$queue = null, $nowait = null |
| 24 |
|
) |
| 25 |
|
{ |
| 26 |
|
$frame = new self(); |
| 27 |
|
|
| 28 |
|
if (null !== $queue) { |
| 29 |
|
$frame->queue = $queue; |
| 30 |
|
} |
| 31 |
|
if (null !== $nowait) { |
| 32 |
|
$frame->nowait = $nowait; |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
return $frame; |
| 36 |
|
} |
| 37 |
|
} |
| 38 |
|
|