<trclass="memdesc:gacf48e59038fab35849e9dc6f8fcf6328"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns metadata from this JetStream message. <br/></td></tr>
<trclass="memdesc:gafb899ebf8e89b3a858fe20f7853635a7"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Acknowledges a message and wait for a confirmation. <br/></td></tr>
<trclass="memdesc:gac271b874154301da9759f9ac05768b47"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Negatively acknowledges a message. <br/></td></tr>
<trclass="memdesc:gac0697389fa60a3c4725e53cd23ada7bd"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Negatively acknowledges a message. <br/></td></tr>
<trclass="memdesc:gae1e0beb19cd76e2f69e6415c41c9bb39"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Resets redelivery timer on the server. <br/></td></tr>
<trclass="memdesc:ga819be2990ec20b964aa574b5331d7f2e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the sequence number of this JetStream message. <br/></td></tr>
<trclass="memdesc:gab4850497c5481f5ec6eb1fcdb43646f5"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns the timestamp (in UTC) of this JetStream message. <br/></td></tr>
<p>This works only for JetStream messages that have been received through a subscription callback or calling <aclass="el"href="group__sub_group.html#ga6538a5d78dfb0f16514b94c8e74c11af"title="Returns the next available message.">natsSubscription_NextMsg</a>.</p>
<dlclass="section note"><dt>Note</dt><dd>The user must destroy the returned object with <aclass="el"href="group__js_msg.html#gaf9bf92294342bcb27053de7038606d12"title="Destroys the message metadata object.">jsMsgMetaData_Destroy</a>.</dd>
<dd>
This function will return an error for non JetStream messages.</dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">new_meta</td><td>the location where to store the pointer to the newly created <aclass="el"href="structjs_msg_meta_data.html">jsMsgMetaData</a> object. </td></tr>
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object, which should be a JetStream message received through a subscription callback or <aclass="el"href="group__sub_group.html#ga6538a5d78dfb0f16514b94c8e74c11af"title="Returns the next available message.">natsSubscription_NextMsg</a>. </td></tr>
<p>This tells the server that the message was successfully processed and it can move on to the next message.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object. </td></tr>
<tr><tdclass="paramname">opts</td><td>the pointer to the <aclass="el"href="structjs_options.html">jsOptions</a> object, possibly <code>NULL</code>. </td></tr>
<p>This is the synchronous version of <aclass="el"href="group__js_msg.html#gae454fb7e7097a3cd3362cb49ef8a3c84"title="Acknowledges a message.">natsMsg_Ack</a>. This indicates successful message processing, and waits for confirmation from the server that the acknowledgment has been processed.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object. </td></tr>
<tr><tdclass="paramname">opts</td><td>the pointer to the <aclass="el"href="structjs_options.html">jsOptions</a> object, possibly <code>NULL</code>. </td></tr>
<tr><tdclass="paramname">errCode</td><td>the location where to store the JetStream specific error code, or <code>NULL</code> if not needed. </td></tr>
<p>This tells the server to redeliver the message. You can configure the number of redeliveries by passing <code>MaxDeliver</code> when you subscribe.</p>
<p>The default is infinite redeliveries.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object. </td></tr>
<tr><tdclass="paramname">opts</td><td>the pointer to the <aclass="el"href="structjs_options.html">jsOptions</a> object, possibly <code>NULL</code>. </td></tr>
<p>This tells the server to redeliver the message after the given <code>delay</code> duration expressed in milliseconds. You can configure the number of redeliveries by passing <code>MaxDeliver</code> when you subscribe.</p>
<p>The default is infinite redeliveries.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object. </td></tr>
<tr><tdclass="paramname">delay</td><td>the amount of time before the redelivery expressed in milliseconds. </td></tr>
<tr><tdclass="paramname">opts</td><td>the pointer to the <aclass="el"href="structjs_options.html">jsOptions</a> object, possibly <code>NULL</code>. </td></tr>
<p>This tells the server that this message is being worked on. It resets the redelivery timer on the server.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object. </td></tr>
<tr><tdclass="paramname">opts</td><td>the pointer to the <aclass="el"href="structjs_options.html">jsOptions</a> object, possibly <code>NULL</code>. </td></tr>
<p>This tells the server to not redeliver this message, regardless of the value <code>MaxDeliver</code>.</p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object. </td></tr>
<tr><tdclass="paramname">opts</td><td>the pointer to the <aclass="el"href="structjs_options.html">jsOptions</a> object, possibly <code>NULL</code>. </td></tr>
<p>Returns the sequence number of this JetStream message, or <code>0</code> if <code>msg</code> is <code>NULL</code> or not a JetStream message.</p>
<dlclass="section note"><dt>Note</dt><dd>This applies to JetStream messages retrieved with <aclass="el"href="group__js_assets_group.html#ga9fe289ae172f83e53ca1b1b747744c1f"title="Retrieves a JetStream message from the stream by sequence.">js_GetMsg</a> or <aclass="el"href="group__js_assets_group.html#ga6835b53da27d5721eddb3698e582cf0c"title="Retrieves the last JetStream message from the stream for a given subject.">js_GetLastMsg</a>.</dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object. </td></tr>
<p>Returns the timestamp (in UTC) of this JetStream message, or <code>0</code> if <code>msg</code> is <code>NULL</code> or not a JetStream message.</p>
<dlclass="section note"><dt>Note</dt><dd>This applies to JetStream messages retrieved with <aclass="el"href="group__js_assets_group.html#ga9fe289ae172f83e53ca1b1b747744c1f"title="Retrieves a JetStream message from the stream by sequence.">js_GetMsg</a> or <aclass="el"href="group__js_assets_group.html#ga6835b53da27d5721eddb3698e582cf0c"title="Retrieves the last JetStream message from the stream for a given subject.">js_GetLastMsg</a>.</dd></dl>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">msg</td><td>the pointer to the <aclass="el"href="group__types_group.html#gadcab54026c4ed78f344ce03ce31bb61a"title="A structure holding a subject, optional reply and payload.">natsMsg</a> object. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.10-->
<!-- start footer part -->
<divid="nav-path"class="navpath"><!-- id is needed for treeview function! -->
<ul>
<liclass="footer">NATS.IO Supported By Synadia Communications Inc.