../TopicPublisher.html#publish(jakarta.jms.Message,int,int,long)">publish</a></span>&#8203;(<a href="../Message.html" title="interface in jakarta.jms">Message</a>&nbsp;message,
       int&nbsp;deliveryMode,
       int&nbsp;priority,
       long&nbsp;timeToLive)</code></th>
<td class="colLast">
<div class="block">Publishes a message to the topic, specifying delivery mode, priority, and time to live.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scop