zoukankan      html  css  js  c++  java
  • perl MQSeries::Queue sync方法

    Sync
    
        This is a flag to indicate that the Syncpoint option is to be used, and the message(s) not committed to the queue until an MQBACK, MQCOMM or MQDISC call is made. These are both wrapped with the queue manager Backout(), Commit() and Disconnect() methods respectively.
    
        The value is simply interpreted as true or false.
    
        If the Sync option is combined with the PutMsgOpts option, the Options field in the PutMsgOpts is checked for compatibility. If the Sync flag is true and the PutMsgOpts specifies MQseries::MQPMO_NO_SYNCPOINT, or vice versa, a fatal error is raised. If no conflict exists, the Sync flag amends the PutMsgOpts.
    
    	$queue->  
          Get(Message => $getmessage,  
              Sync    => 1,  
             ) or die("Unable to get message
    " .  
                      "CompCode = " . $queue->CompCode() . "
    " .  
                      "Reason = " . $queue->Reason() . "
    ");  
          print "第一条消息:===";  
          print $getmessage->Data();  
          print "
    ";  
         # $qmgr_obj->Commit(); 
    	这是一个标志表明 Syncpoint 选项被使用,消息不会提交到队列直到一个
    	
    	 MQBACK, MQCOMM or MQDISC 调用被请求。
    	 
    	 那些都被封装为Backout(), Commit() and Disconnect() methods
    	 
    	 这个值是简单的解释为true或者false
    	 
    	 
    	 

  • 相关阅读:
    AVFrame 解析
    Mat与图像的基本概念
    linux基本操作
    Makefile 使用
    MySQL的安装与配置——详细过程
    k8s imagePullPolicy拉取策略
    K8S拉取Django项目创建pod
    Harbor单点仓库部署
    Django项目构建发布Harbor仓库
    K8S集群部署-二进制部署
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13349775.html
Copyright © 2011-2022 走看看