<trclass="memdesc:a856a6af4a7ff5aa2e736338091e69484"><tdclass="mdescLeft"> </td><tdclass="mdescRight">If specified, the consumer will be bound to this stream name. <br/></td></tr>
<trclass="memdesc:a7aa5b8439ed288b858943f28c291cb36"><tdclass="mdescLeft"> </td><tdclass="mdescRight">If specified, the subscription will be bound to an existing consumer from the <code>Stream</code> without attempting to create. <br/></td></tr>
<trclass="memdesc:aaf4b620d112a31f51a20389c5405805d"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Queue name for queue subscriptions. <br/></td></tr>
<trclass="memdesc:a21a905c49dfab61729d8674702d196b2"><tdclass="mdescLeft"> </td><tdclass="mdescRight">If true, the user will have to acknowledge the messages. <br/></td></tr>
<trclass="memdesc:a95c5d2db8ca97d644042d436de119be4"><tdclass="mdescLeft"> </td><tdclass="mdescRight">If true, this will be an ordered consumer. <br/></td></tr>
<p>These are options that you can provide to JetStream subscribe APIs.</p>
<p>The common usage will be to initialize a structure on the stack by calling <aclass="el"href="group__js_sub_group.html#ga472adb949d1af9d8f07bda99f5d7f3f8"title="Initializes a subscribe options structure.">jsSubOptions_Init</a>. Note that strings are owned by the application and need to be valid for the duration of the API call this object is passed to.</p>
<dlclass="section note"><dt>Note</dt><dd>It is the user responsibility to free the strings if they have been allocated.</dd></dl>
<dlclass="section see"><dt>See also</dt><dd><aclass="el"href="group__js_sub_group.html#ga472adb949d1af9d8f07bda99f5d7f3f8"title="Initializes a subscribe options structure.">jsSubOptions_Init</a></dd></dl>
</div><h2class="groupheader">Member Data Documentation</h2>
<p>If specified, the library will only bind to this stream, otherwise, the library communicates with the server to get the stream name that has the matching subject given to the <aclass="el"href="group__js_sub_group.html#gaa686c6efd84ef963de1925108e896515"title="Create an asynchronous subscription.">js_Subscribe</a> family calls. </p>
<p>If specified, the <aclass="el"href="group__js_sub_group.html#gaa686c6efd84ef963de1925108e896515"title="Create an asynchronous subscription.">js_Subscribe</a> family calls will only attempt to create a subscription for this matching consumer.</p>
<p>That is, the consumer should exist prior to the call, either created by the application calling <aclass="el"href="group__js_assets_group.html#gaf2efb63db150e782d9007090b49d4115"title="Adds a JetStream consumer.">js_AddConsumer</a> or it should have been created with some other tools such as the NATS cli. </p>
<p>If specified, the low level NATS subscription will be a queue subscription, which means that the load on the delivery subject will be balanced across multiple members of the same queue group.</p>
<p>This makes sense only if the delivery subject in the <code>Config</code> field of <aclass="el"href="structjs_sub_options.html">jsSubOptions</a> is the same for the members of the same group.</p>
<p>When no <code>Durable</code> name is specified in the <code>Config</code> block, then the queue name will be used as the consumer's durable name. In this case, the queue name cannot contain the character ".". </p>
<p>This has meaning only for asynchronous subscriptions, and only if the consumer's acknowledgment mode is other than <aclass="el"href="group__types_group.html#gga8fcb50e6e7312834791f9e237d28e873afd91fe31cf57c68863ca3090b07c296c"title="Requires no acks for delivered messages.">js_AckNone</a>.</p>
<p>For asynchronous subscriptions, the default behavior is for the library to acknowledge the message once the user callback returns.</p>
<p>This option allows you to take control of when the message should be acknowledged. </p>
<p>This will create a fifo ephemeral consumer for in order delivery of messages. There are no redeliveries and no acks. Flow control and heartbeats are required and set by default, but the heartbeats value can be overridden in the consumer configuration. </p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>