📄 ref.sam.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>SAM Functions</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.sam.html">SAM</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.samconnection-commit.html">SAMConnection->commit</a></div> <div class="up"><a href="book.sam.html">SAM</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1 class="title">SAM Functions</h1> <div class="partintro"> <div id="sam.classes" class="section"> <h2 class="title">Predefined Classes</h2> <div id="sam.class.Connection" class="section"> <h2 class="title"><b class="classname">SAMConnection</b></h2> <p class="para"> Object representing a connection to a Messaging Server </p> <div id="sam.class.Connection.constructor" class="section"> <h2 class="title">Constructor</h2> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="function.samconnection-constructor.html" class="link">new SAMConnection</a> - construct a new connection object to allow connection to a messaging infrastructure. </p> </li> </ul> </div> <div id="sam.class.Connection.methods" class="section"> <h2 class="title">Methods</h2> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="function.samconnection-commit.html" class="link">commit</a> - a method that commits (successfully completes) an in-flight unit of work. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-connect.html" class="link">connect</a> - a method that connects a PHP script to a messaging server. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-disconnect.html" class="link">disconnect</a> - a method that disconnects a PHP script from a messaging server. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-isconnected.html" class="link">isConnected</a> - a method that checks whether a PHP script is connected to a messaging server. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-peek.html" class="link">peek</a> - a method that receives a message from a queue without removing it from the queue. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-peekall.html" class="link">peekAll</a> - a method that receives one or messages from a queue without removing them from the queue. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-receive.html" class="link">receive</a> - a method that receives a message from a queue or subscription. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-remove.html" class="link">remove</a> - a method that removes a message from a queue. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-rollback.html" class="link">rollback</a> - a method that cancels (rolls back) an in-flight unit of work. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-send.html" class="link">send</a> - a method that sends a message to a queue or posts to a topic </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-setDebug.html" class="link">setDebug</a> - a method that switches additional debugging output on or off </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-subscribe.html" class="link">subscribe</a> - a method that creates a subscription to one or more topics </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-unsubscribe.html" class="link">unsubscribe</a> - a method that destroys a subscription to one or more topics </p> </li> </ul> </div> <div id="sam.class.Connection.properties" class="section"> <h2 class="title">Properties</h2> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="function.samconnection-errno.html" class="link">errno</a> - the numeric error code for the last encountered error on this connection. This property is set to 0 if the last operation was successful. </p> </li> <li class="listitem"> <p class="para"> <a href="function.samconnection-error.html" class="link">error</a> - the text description for the last encountered error on this connection </p> </li> </ul> </div> </div> <div id="sam.class.Message" class="section"> <h2 class="title"><b class="classname">SAMMessage</b></h2> <p class="para"> Object representing a message to be sent or received </p> <div id="sam.class.Message.constructor" class="section"> <h2 class="title">Constructor</h2> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="function.sammessage-constructor.html" class="link">new SAMMessage</a> - construct a new message. </p> </li> </ul> </div> <div id="sam.class.Message.properties" class="section"> <h2 class="title">Properties</h2> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="function.sammessage-body.html" class="link">body</a> - the body of the message. </p> </li> <li class="listitem"> <p class="para"> <a href="function.sammessage-header.html" class="link">header</a> - the header properties of the message. </p> </li> </ul> </div> </div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.samconnection-commit.html">SAMConnection->commit</a> 鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -