Enum Class McpStreamTerminationReason
- All Implemented Interfaces:
Serializable, Comparable<McpStreamTerminationReason>, Constable
Bounded reasons for MCP request-stream and subscription termination.
This type may gain reviewed constants in Soklet 4.x; use a forward-compatible default when switching over its values.
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA bounded server transport or protocol-output queue was exhausted.The client disconnected.The stream completed normally.The request deadline elapsed.Soklet contained an unexpected stream failure.The request was canceled.The MCP server is stopping.The verified MCP session was explicitly closed.The verified MCP session exceeded its idle or absolute lifetime.The simulator's cumulative captured-byte capacity was exhausted.The simulator's pending stream-item capacity was exhausted.A required subscription authorization check failed.The subscription authorizer denied continued access.The subscription authorization lease expired.Reconciliation failed to check fresh authorization; an explicit denial uses SUBSCRIPTION_AUTHORIZATION_DENIED.Stream output could not be written, including expiry of the write-idle timeout. -
Method Summary
Modifier and TypeMethodDescriptionstatic McpStreamTerminationReasonReturns the enum constant of this class with the specified name.static McpStreamTerminationReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
COMPLETED
The stream completed normally. -
CLIENT_DISCONNECTED
The client disconnected. -
REQUEST_CANCELED
The request was canceled. -
SESSION_EXPIRED
The verified MCP session exceeded its idle or absolute lifetime. -
SESSION_CLOSED
The verified MCP session was explicitly closed. -
DEADLINE_EXCEEDED
The request deadline elapsed. -
WRITE_FAILED
Stream output could not be written, including expiry of the write-idle timeout. -
BACKPRESSURE
A bounded server transport or protocol-output queue was exhausted. -
SERVER_STOPPING
The MCP server is stopping. -
SIMULATOR_CAPTURE_ITEM_LIMIT_EXCEEDED
The simulator's pending stream-item capacity was exhausted. -
SIMULATOR_CAPTURE_BYTE_LIMIT_EXCEEDED
The simulator's cumulative captured-byte capacity was exhausted. -
SUBSCRIPTION_AUTHORIZATION_DENIED
The subscription authorizer denied continued access. -
SUBSCRIPTION_AUTHORIZATION_EXPIRED
The subscription authorization lease expired. -
SUBSCRIPTION_AUTHORIZATION_CHECK_FAILED
A required subscription authorization check failed. -
SUBSCRIPTION_RECONCILIATION_FAILED
Reconciliation failed to check fresh authorization; an explicit denial uses SUBSCRIPTION_AUTHORIZATION_DENIED. -
INTERNAL_ERROR
Soklet contained an unexpected stream failure.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-