<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Threads und Message-Queues on sillysky.net</title>
    <link>https://sillysky.net/docs/nyssr/namespaces/threads/</link>
    <description>Recent content in Threads und Message-Queues on sillysky.net</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 14 Oct 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sillysky.net/docs/nyssr/namespaces/threads/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>EThreadPriority</title>
      <link>https://sillysky.net/docs/nyssr/namespaces/threads/ethreadpriority/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/nyssr/namespaces/threads/ethreadpriority/</guid>
      <description>&lt;p&gt;This enum describes the priority of a thread.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;LOWEST (1)&lt;/li&gt;&#xA;&lt;li&gt;VERY_LOW (2)&lt;/li&gt;&#xA;&lt;li&gt;LOWER (3)&lt;/li&gt;&#xA;&lt;li&gt;LOW (4)&lt;/li&gt;&#xA;&lt;li&gt;NORMAL (5)&lt;/li&gt;&#xA;&lt;li&gt;HIGH (6)&lt;/li&gt;&#xA;&lt;li&gt;HIGHER (7)&lt;/li&gt;&#xA;&lt;li&gt;VERY_HIGH (8)&lt;/li&gt;&#xA;&lt;li&gt;ULTRA_HIGH (9)&lt;/li&gt;&#xA;&lt;li&gt;HIGHEST (10)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The enum is used e.g. in the &lt;a href=&#34;https://sillysky.net/docs/nyssr/job-engine/ijobengine/&#34;&gt;job engine&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;A Java thread can be assigned priority 1 (low) to 10 (high).&lt;/p&gt;</description>
    </item>
    <item>
      <title>IMessageQueue</title>
      <link>https://sillysky.net/docs/nyssr/namespaces/threads/imessagequeue/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/nyssr/namespaces/threads/imessagequeue/</guid>
      <description>&lt;p&gt;Each thread of a &lt;a href=&#34;https://sillysky.net/docs/nyssr/namespaces/inamespace/&#34;&gt;namespaces&lt;/a&gt; has its own message queue. Here the&#xA;&lt;a href=&#34;https://sillysky.net/docs/nyssr/messages/cmessage/&#34;&gt;messages&lt;/a&gt; are added, which are addressed to &lt;a href=&#34;https://sillysky.net/docs/nyssr/namespaces/targets/itarget/&#34;&gt;targets&lt;/a&gt;,&#xA;which are associated with the thread. The thread fetches the messages from the&#xA;queue and then delivers them to the target. This ensures that messages for a&#xA;target are always processed in the same thread.&lt;/p&gt;&#xA;&lt;p&gt;The methods of the message queue are only used by the system, but they are in&#xA;principle also accessible to the community, e.g. to configure the thread.&lt;/p&gt;</description>
    </item>
    <item>
      <title>IMessageQueueRegistry</title>
      <link>https://sillysky.net/docs/nyssr/namespaces/threads/imessagequeueregistry/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/nyssr/namespaces/threads/imessagequeueregistry/</guid>
      <description>&lt;p&gt;Each namespace has a MessageQueueRegistry. All message queues of the&#xA;&lt;a href=&#34;https://sillysky.net/docs/nyssr/namespaces/inamespace/&#34;&gt;namespaces&lt;/a&gt; are registered here. Each MessageQueueRegistry contains&#xA;at least one message queue. However, the user can add more.&lt;/p&gt;&#xA;&lt;h2 id=&#34;access&#34;&gt;Access&lt;/h2&gt;&#xA;&lt;p&gt;The registry is obtained via getter from the &lt;a href=&#34;https://sillysky.net/docs/nyssr/namespaces/inamespace/&#34;&gt;namespace&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-java&#34;&gt;final &lt;a href=&#34;https://sillysky.net/docs/nyssr/namespaces/threads/imessagequeueregistry/&#34;&gt;IMessageQueueRegistry&lt;/a&gt; mqr = namespace.getMessageQueueRegistry();&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;h2 id=&#34;creating-a-message-queue&#34;&gt;Creating a message queue&lt;/h2&gt;&#xA;&lt;p&gt;This method creates a &lt;a href=&#34;https://sillysky.net/docs/nyssr/namespaces/threads/imessagequeue/&#34;&gt;message queue&lt;/a&gt; and starts it.&lt;/p&gt;&#xA;&lt;pre class=&#34;ss-javacode&#34;&gt;&lt;code class=&#34;language-java&#34;&gt;@NotNull &lt;a href=&#34;https://sillysky.net/docs/nyssr/namespaces/threads/imessagequeue/&#34;&gt;IMessageQueue&lt;/a&gt; createAndStartAsyncQueue(@NotNull &lt;a href=&#34;https://sillysky.net/docs/nyssr/ids-and-addresses/id/&#34;&gt;IId&lt;/a&gt; aQueueId,&#xA;                                                @NotNull String aDesc,&#xA;                                                int aThreadPriority) throws &lt;a href=&#34;https://sillysky.net/docs/nyssr/other-interfaces/cexception/&#34;&gt;CException&lt;/a&gt;;&lt;/code&gt;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;It requires a valid queue ID, which can be created via &lt;a href=&#34;https://sillysky.net/docs/nyssr/ids-and-addresses/cidfactory/&#34;&gt;CIdFactory&lt;/a&gt;.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
