Class NotificationLogSupport

java.lang.Object
dev.tachyonmcp.core.server.internal.NotificationLogSupport

public final class NotificationLogSupport extends Object
Shared notifications/message wire-shape helpers for the two independent notification senders — DefaultDispatchContext.NotificationsImpl (per-request) and DefaultTachyonServer.broadcastLog (server-wide) — which live in different packages and gate emission with their own, unrelated shouldEmit logic.
  • Field Details

  • Method Details

    • logParams

      public static Map<String,Object> logParams(LoggingLevel level, @Nullable String logger, @Nullable Object data)
      Builds the notifications/message params in wire order. Uses a LinkedHashMap so a null data value is retained (spec-legal) rather than rejected by Map.of, and an absent logger is omitted entirely.