更多>
                最新下载
24小时阅读排行榜
- 1 cad如何标注尺寸 完整教程:CAD中尺寸标注的设置与调整
- 2 C# 如何向xml文件中添加新节点
- 3 如何在 Excel 中使用 OFFSET 函数
- 4 Linux用户groups命令详解
- 5 解决 babel-preset-react-app 依赖缺失问题的完整指南
- 6 如何在VSCode中配置ESLint
- 7 php工具如何使用Symfony组件_php工具模块化开发的最佳实践
- 8 如何使用Windows性能计数器收集应用程序内存泄漏的详细诊断信息?
- 9 VSCode时间线功能:快速查看文件的本地修改历史
- 10 固态硬盘掉速严重怎么办?四个恢复性能的方法
- 11 python连接mysql数据库步骤
- 12 WPS2022自动保存间隔设置_WPS2022保存选项的自定义配置
- 13 瑞达写作官方网站主站 瑞达写作App官方下载中心进入
- 14 JS实现前端模糊搜索功能_javascript技巧
- 15 天猫2025双11红包雨怎么领取时间 天猫活动节点
                        更多>
                最新教程
- 
                        - Node.js 教程
- 6695 2025-08-28
 
- 
                        - CSS3 教程
- 957276 2025-08-27
 
- 
                        - Rust 教程
- 10620 2025-08-27
 
- 
                        - Vue 教程
- 12841 2025-08-22
 
- 
                        - PostgreSQL 教程
- 9800 2025-08-21
 
- 
                        - Git 教程
- 4922 2025-08-21
 
        下载首页 / 类库下载 / 其它类库
        
                        
        
             
             
            
    
    
    AMQP,即Advanced Message Queuing Protocol,一个提供统一消息服务的应用层标准高级消息队列协议,是应用层协议的一个开放标准,为面向消息的中间件设计。基于此协议的客户端与消息中间件可传递消息,并不受客户端/中间件不同产品,不同的开发语言等条件的限制。Erlang中的实现有 RabbitMQ等。
abstract class AbstractChannel
{
    const PROTOCOL_080 = '0.8';
    const PROTOCOL_091 = '0.9.1';
    public static $PROTOCOL_CONSTANTS_CLASS;
    public function __construct(AbstractConnection $connection, $channel_id)
    {
        $this->connection = $connection;
        $this->channel_id = $channel_id;
        $connection->channels[$channel_id] = $this;
        $this->frame_queue = array(); // Lower level queue for frames
        $this->method_queue = array(); // Higher level queue for methods
        $this->auto_decode = false;
        $this->msg_property_reader = new AMQPReader(null);
        $this->wait_content_reader = new AMQPReader(null);
        $this->dispatch_reader = new AMQPReader(null);
        $this->protocolVersion = self::getProtocolVersion();
        switch ($this->protocolVersion) {
            case self::PROTOCOL_091:
                self::$PROTOCOL_CONSTANTS_CLASS = 'PhpAmqpLib\Wire\Constants091';
                $c = self::$PROTOCOL_CONSTANTS_CLASS;
                $this->debug = new DebugHelper($c);
                $this->amqp_protocol_header = $c::$AMQP_PROTOCOL_HEADER;
                $this->protocolWriter = new Protocol091();
                $this->waitHelper = new Wait091();
                $this->methodMap = new MethodMap091();
                break;
            case self::PROTOCOL_080:
                self::$PROTOCOL_CONSTANTS_CLASS = 'PhpAmqpLib\Wire\Constants080';
                $c = self::$PROTOCOL_CONSTANTS_CLASS;
                $this->debug = new DebugHelper($c);
                $this->amqp_protocol_header = $c::$AMQP_PROTOCOL_HEADER;
                $this->protocolWriter = new Protocol080();
                $this->waitHelper = new Wait080();
                $this->methodMap = new MethodMap080();
                break;
            default:
                throw new AMQPRuntimeException(sprintf(
                    'Protocol: %s not implemented.',
                    $this->protocolVersion
                ));
        }
    } 
             
            
                本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
            
         
                 
  
                             
                             
                        

 
                        
                       
                        
                      

