<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>CTarget on sillysky.net</title>
    <link>https://sillysky.net/docs/nyssr/namespaces/targets/ctarget/</link>
    <description>Recent content in CTarget on sillysky.net</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Tue, 14 Oct 2025 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://sillysky.net/docs/nyssr/namespaces/targets/ctarget/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>IMessageHandler</title>
      <link>https://sillysky.net/docs/nyssr/namespaces/targets/ctarget/imessagehandler/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/nyssr/namespaces/targets/ctarget/imessagehandler/</guid>
      <description>The message handler is a simple interface for processing messages:&#xA;public interface IMessageHandler { boolean handleMessage(@NotNull CEnvelope aEnvelope, @NotNull CRecord aRecord) throws Exception; } It receives the components of the message: the envelope with the information needed for the message transport, and the Record as payload.&#xA;The return value indicates whether the message was finally processed (true), or not (false).&#xA;The message handler is used in target, where it is either registered for a message ID, or where it serves as a null handler as a handler for all unspecified messages.</description>
    </item>
    <item>
      <title>IMessageHandlerRegistry</title>
      <link>https://sillysky.net/docs/nyssr/namespaces/targets/ctarget/imessagehandlerregistry/</link>
      <pubDate>Tue, 14 Oct 2025 00:00:00 +0000</pubDate>
      <guid>https://sillysky.net/docs/nyssr/namespaces/targets/ctarget/imessagehandlerregistry/</guid>
      <description>This registry holds a map for message handler to process messages.&#xA;Accordingly, there are methods for adding handlers&#xA;void addMessageHandler(@Nullable IId aMID, @NotNull IMessageHandler aHandler); or to remove handlers:&#xA;void removeMessageHandler(@NotNull IId aMID); void removeMessageHandler(@NotNull IId aMID, @NotNull IMessageHandler aHandler); The key for the map is a message ID. A special case is the message ID null, since this message handler receives all messages for which no message handlers have been installed.</description>
    </item>
  </channel>
</rss>
