Interface McpRateLimitDecision
- All Known Implementing Classes:
McpRateLimitDecision.Allowed, McpRateLimitDecision.Denied
@ThreadSafe
public sealed interface McpRateLimitDecision
permits McpRateLimitDecision.Allowed, McpRateLimitDecision.Denied
Immutable result of one MCP rate-limit acquisition attempt.
This is a closed domain; exhaustive switches are supported, and any new alternative requires an explicit reviewed contract amendment.
- Author:
- Mark Allen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classAn allowed acquisition.static final classA denied acquisition carrying a nonnegative minimum suggested retry delay. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionallowed()Returns an allowed decision.Returns a denied decision with the minimum suggested retry delay.
-
Method Details
-
allowed
Returns an allowed decision.- Returns:
- an allowed decision
-
denied
Returns a denied decision with the minimum suggested retry delay.- Parameters:
retryAfter- nonnegative retry delay- Returns:
- a denied decision
-