Interface JsonRpcMessage
- All Known Implementing Classes:
JsonRpcMessage.Error,JsonRpcMessage.Notification,JsonRpcMessage.Request,JsonRpcMessage.Response
public sealed interface JsonRpcMessage
permits JsonRpcMessage.Request<T>, JsonRpcMessage.Response, JsonRpcMessage.Error, JsonRpcMessage.Notification<T>
A parsed JSON-RPC 2.0 message: request, notification, response, or error.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordA JSON-RPC error response.static final recordA JSON-RPC notification (no ID, no response expected).static final recordA JSON-RPC request with an ID (expecting a response).static final recordA JSON-RPC success response. -
Method Summary
-
Method Details
-
id
@Nullable RequestId id()The request/response ID, ornullfor notifications.
-