CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Reporting Security Issues
    • Privacy Policy
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Get Involved
    • Issues (Github)
    • Bakery
    • Featured Resources
    • Training
    • Meetups
    • My CakePHP
    • CakeFest
    • Newsletter
    • Linkedin
    • YouTube
    • Facebook
    • Twitter
    • Mastodon
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C Queue 2.x API

  • Project:
    • Queue
      • CakePHP
      • Authentication
      • Authorization
      • Chronos
      • Elastic Search
      • Queue
  • Version:
    • 2.x
      • 2.x
      • 1.x

Namespaces

  • Cake\Queue
    • Command
    • Consumption
    • Job
    • Listener
    • Mailer
    • Model
    • Queue
    • TestSuite
      • Constraint
      • Transport

Class TestProducer

Test Producer

Captures messages instead of sending them to a queue.

Namespace: Cake\Queue\TestSuite\Transport

Property Summary

  • $deliveryDelay protected
    int|null

    Delivery delay

  • $priority protected
    int|null

    Priority

  • $timeToLive protected
    int|null

    Time to live

Method Summary

  • getDeliveryDelay() public

    Get delivery delay

  • getPriority() public

    Get priority

  • getTimeToLive() public

    Get time to live

  • send() public

    Send message

  • setDeliveryDelay() public

    Set delivery delay

  • setPriority() public

    Set priority

  • setTimeToLive() public

    Set time to live

Method Detail

getDeliveryDelay() ¶ public

getDeliveryDelay(): int|null

Get delivery delay

Returns
int|null

getPriority() ¶ public

getPriority(): int|null

Get priority

Returns
int|null

getTimeToLive() ¶ public

getTimeToLive(): int|null

Get time to live

Returns
int|null

send() ¶ public

send(Destination $destination, Message $message): void

Send message

Parameters
Destination $destination

Destination

Message $message

Message

Returns
void

setDeliveryDelay() ¶ public

setDeliveryDelay(?int $deliveryDelay = null): Interop\Queue\Producer

Set delivery delay

The delivery delay is in milliseconds. Use null to unset delivery delay and use transport's mode

Parameters
?int $deliveryDelay optional

Delay in milliseconds

Returns
Interop\Queue\Producer

setPriority() ¶ public

setPriority(?int $priority = null): Interop\Queue\Producer

Set priority

Use null to unset priority and use transport's mode

Parameters
?int $priority optional

Priority

Returns
Interop\Queue\Producer

setTimeToLive() ¶ public

setTimeToLive(?int $timeToLive = null): Interop\Queue\Producer

Set time to live

The message time to live to be used, in milliseconds; a value of zero means that a message never expires. Use null to unset time to live and use transport's mode

Parameters
?int $timeToLive optional

Time to live in milliseconds

Returns
Interop\Queue\Producer

Property Detail

$deliveryDelay ¶ protected

Delivery delay

Type
int|null

$priority ¶ protected

Priority

Type
int|null

$timeToLive ¶ protected

Time to live

Type
int|null
OpenHub
Pingping
Linode
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Reporting Security Issues
  • Privacy Policy
  • Logos & Trademarks
  • Community
  • Get Involved
  • Issues (Github)
  • Bakery
  • Featured Resources
  • Training
  • Meetups
  • My CakePHP
  • CakeFest
  • Newsletter
  • Linkedin
  • YouTube
  • Facebook
  • Twitter
  • Mastodon
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs