| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
| <title>cms-1.2: src/main/cms/MessageProducer.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| <link href="tabs.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.5.3 --> |
| <div class="tabs"> |
| <ul> |
| <li><a href="main.html"><span>Main Page</span></a></li> |
| <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
| <li><a href="annotated.html"><span>Data Structures</span></a></li> |
| <li class="current"><a href="files.html"><span>Files</span></a></li> |
| </ul> |
| </div> |
| <h1>src/main/cms/MessageProducer.h</h1><a href="_message_producer_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span> |
| <a name="l00002"></a>00002 <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span> |
| <a name="l00003"></a>00003 <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span> |
| <a name="l00004"></a>00004 <span class="comment"> * this work for additional information regarding copyright ownership.</span> |
| <a name="l00005"></a>00005 <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span> |
| <a name="l00006"></a>00006 <span class="comment"> * (the "License"); you may not use this file except in compliance with</span> |
| <a name="l00007"></a>00007 <span class="comment"> * the License. You may obtain a copy of the License at</span> |
| <a name="l00008"></a>00008 <span class="comment"> *</span> |
| <a name="l00009"></a>00009 <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span> |
| <a name="l00010"></a>00010 <span class="comment"> *</span> |
| <a name="l00011"></a>00011 <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span> |
| <a name="l00012"></a>00012 <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span> |
| <a name="l00013"></a>00013 <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span> |
| <a name="l00014"></a>00014 <span class="comment"> * See the License for the specific language governing permissions and</span> |
| <a name="l00015"></a>00015 <span class="comment"> * limitations under the License.</span> |
| <a name="l00016"></a>00016 <span class="comment"> */</span> |
| <a name="l00017"></a>00017 |
| <a name="l00018"></a>00018 <span class="preprocessor">#ifndef _CMS_MESSAGEPRODUCER_H_</span> |
| <a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define _CMS_MESSAGEPRODUCER_H_</span> |
| <a name="l00020"></a>00020 <span class="preprocessor"></span> |
| <a name="l00021"></a>00021 <span class="preprocessor">#include <<a class="code" href="src_2main_2cms_2config_8h.html">cms/Config.h</a>></span> |
| <a name="l00022"></a>00022 <span class="preprocessor">#include <<a class="code" href="_message_8h.html">cms/Message.h</a>></span> |
| <a name="l00023"></a>00023 <span class="preprocessor">#include <<a class="code" href="_destination_8h.html">cms/Destination.h</a>></span> |
| <a name="l00024"></a>00024 <span class="preprocessor">#include <<a class="code" href="_closeable_8h.html">cms/Closeable.h</a>></span> |
| <a name="l00025"></a>00025 <span class="preprocessor">#include <<a class="code" href="_c_m_s_exception_8h.html">cms/CMSException.h</a>></span> |
| <a name="l00026"></a>00026 <span class="preprocessor">#include <<a class="code" href="_delivery_mode_8h.html">cms/DeliveryMode.h</a>></span> |
| <a name="l00027"></a>00027 |
| <a name="l00028"></a>00028 <span class="keyword">namespace </span>cms |
| <a name="l00029"></a>00029 { |
| <a name="l00052"></a><a class="code" href="classcms_1_1_message_producer.html">00052</a> <span class="keyword">class </span><a class="code" href="src_2main_2cms_2config_8h.html#25b3a3344046fe8013e1ad36914667f3">CMS_API</a> <a class="code" href="classcms_1_1_message_producer.html" title="A client uses a MessageProducer object to send messages to a destination.">MessageProducer</a> : <span class="keyword">public</span> <a class="code" href="classcms_1_1_closeable.html" title="Interface for a class that implements the close method.">Closeable</a> |
| <a name="l00053"></a>00053 { |
| <a name="l00054"></a>00054 <span class="keyword">public</span>: |
| <a name="l00055"></a>00055 |
| <a name="l00056"></a><a class="code" href="classcms_1_1_message_producer.html#9a6f8b91f372ba65a7aa5594392fb1fe">00056</a> <span class="keyword">virtual</span> ~<a class="code" href="classcms_1_1_message_producer.html" title="A client uses a MessageProducer object to send messages to a destination.">MessageProducer</a>() {} |
| <a name="l00057"></a>00057 |
| <a name="l00067"></a>00067 <span class="keyword">virtual</span> <span class="keywordtype">void</span> send( <a class="code" href="classcms_1_1_message.html" title="Root of all messages.">Message</a>* message ) <span class="keywordflow">throw</span> ( <a class="code" href="classcms_1_1_c_m_s_exception.html" title="This class represents an error that has occurred in cms.">CMSException</a> ) = 0; |
| <a name="l00068"></a>00068 |
| <a name="l00083"></a>00083 <span class="keyword">virtual</span> <span class="keywordtype">void</span> send( <a class="code" href="classcms_1_1_message.html" title="Root of all messages.">Message</a>* message, <span class="keywordtype">int</span> deliveryMode, <span class="keywordtype">int</span> priority, |
| <a name="l00084"></a>00084 <span class="keywordtype">long</span> <span class="keywordtype">long</span> timeToLive) <span class="keywordflow">throw</span> ( <a class="code" href="classcms_1_1_c_m_s_exception.html" title="This class represents an error that has occurred in cms.">CMSException</a> ) = 0; |
| <a name="l00085"></a>00085 |
| <a name="l00097"></a>00097 <span class="keyword">virtual</span> <span class="keywordtype">void</span> send( <span class="keyword">const</span> <a class="code" href="classcms_1_1_destination.html" title="A Destination object encapsulates a provider-specific address.">Destination</a>* destination, |
| <a name="l00098"></a>00098 <a class="code" href="classcms_1_1_message.html" title="Root of all messages.">Message</a>* message ) <span class="keywordflow">throw</span> ( <a class="code" href="classcms_1_1_c_m_s_exception.html" title="This class represents an error that has occurred in cms.">CMSException</a> ) = 0; |
| <a name="l00099"></a>00099 |
| <a name="l00116"></a>00116 <span class="keyword">virtual</span> <span class="keywordtype">void</span> send( <span class="keyword">const</span> <a class="code" href="classcms_1_1_destination.html" title="A Destination object encapsulates a provider-specific address.">Destination</a>* destination, |
| <a name="l00117"></a>00117 <a class="code" href="classcms_1_1_message.html" title="Root of all messages.">Message</a>* message, <span class="keywordtype">int</span> deliveryMode, <span class="keywordtype">int</span> priority, |
| <a name="l00118"></a>00118 <span class="keywordtype">long</span> <span class="keywordtype">long</span> timeToLive) <span class="keywordflow">throw</span> ( <a class="code" href="classcms_1_1_c_m_s_exception.html" title="This class represents an error that has occurred in cms.">CMSException</a> ) = 0; |
| <a name="l00119"></a>00119 |
| <a name="l00126"></a>00126 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDeliveryMode( <span class="keywordtype">int</span> mode ) = 0; |
| <a name="l00127"></a>00127 |
| <a name="l00133"></a>00133 <span class="keyword">virtual</span> <span class="keywordtype">int</span> getDeliveryMode() <span class="keyword">const</span> = 0; |
| <a name="l00134"></a>00134 |
| <a name="l00141"></a>00141 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDisableMessageID( <span class="keywordtype">bool</span> value ) = 0; |
| <a name="l00142"></a>00142 |
| <a name="l00148"></a>00148 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getDisableMessageID() <span class="keyword">const</span> = 0; |
| <a name="l00149"></a>00149 |
| <a name="l00154"></a>00154 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setDisableMessageTimeStamp( <span class="keywordtype">bool</span> value ) = 0; |
| <a name="l00155"></a>00155 |
| <a name="l00161"></a>00161 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> getDisableMessageTimeStamp() <span class="keyword">const</span> = 0; |
| <a name="l00162"></a>00162 |
| <a name="l00169"></a>00169 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setPriority( <span class="keywordtype">int</span> priority ) = 0; |
| <a name="l00170"></a>00170 |
| <a name="l00176"></a>00176 <span class="keyword">virtual</span> <span class="keywordtype">int</span> getPriority() <span class="keyword">const</span> = 0; |
| <a name="l00177"></a>00177 |
| <a name="l00186"></a>00186 <span class="keyword">virtual</span> <span class="keywordtype">void</span> setTimeToLive( <span class="keywordtype">long</span> <span class="keywordtype">long</span> time ) = 0; |
| <a name="l00187"></a>00187 |
| <a name="l00193"></a>00193 <span class="keyword">virtual</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> getTimeToLive() <span class="keyword">const</span> = 0; |
| <a name="l00194"></a>00194 |
| <a name="l00195"></a>00195 }; |
| <a name="l00196"></a>00196 |
| <a name="l00197"></a>00197 } |
| <a name="l00198"></a>00198 |
| <a name="l00199"></a>00199 <span class="preprocessor">#endif </span><span class="comment">/*_CMS_MESSAGEPRODUCER_H_*/</span> |
| </pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sat Oct 27 16:56:39 2007 for cms-1.2 by |
| <a href="http://www.doxygen.org/index.html"> |
| <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
| </body> |
| </html> |