Package dev.tachyonmcp.api.runtime
Interface Notifications
- All Known Subinterfaces:
ContextNotifications
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Emits structured MCP
notifications/message logs.
This is the public logging surface. The single abstract method
log(LoggingLevel, String, Object) carries all behavior; the other methods are pure
delegating conveniences, so implementations (including lambdas) only implement that one method.
Threshold and capability gating, plus the wire-shape construction, live in the internal
implementation — never in this interface.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidEmits an error-level log message.default voidEmits an info-level log message.default voidlog(LoggingLevel level, @Nullable Object data) Emits a structured MCP log message without a logger name.voidlog(LoggingLevel level, @Nullable String logger, @Nullable Object data) Emits a structured MCP log message.default voidEmits a warning-level log message.
-
Method Details
-
log
Emits a structured MCP log message.- Parameters:
level- the message severitylogger- the optional logger namedata- JSON-serializable message data, includingnull
-
log
Emits a structured MCP log message without a logger name. -
info
Emits an info-level log message. -
warning
Emits a warning-level log message. -
error
Emits an error-level log message.
-