Package dev.tachyonmcp.core.server
Class HandlerWatchdog
java.lang.Object
dev.tachyonmcp.core.server.HandlerWatchdog
Fires a log entry at configurable thresholds when a handler takes longer than expected.
Does not capture a thread reference — suitable for async handler pipelines where the
continuation may run on any thread.
-
Method Summary
-
Method Details
-
watch
Schedules a watchdog that fires afterdelayMsmilliseconds and logs a warning. Cancel the returnedFuture(withcancel(false)) when the handler completes normally. When debug logging is disabled the output can never be seen, so no timer is scheduled at all — avoids per-request schedule/cancel churn on the single timer thread.
-