Interface DefaultMcpSession.RequestHandler<T>

Type Parameters:
T - Response type
Enclosing class:
DefaultMcpSession
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface DefaultMcpSession.RequestHandler<T>
Functional interface for handling incoming JSON-RPC requests. Implementations should process the request parameters and return a response.
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<T>
    handle(Object params)
    Handles an incoming request with the given parameters.
  • Method Details

    • handle

      reactor.core.publisher.Mono<T> handle(Object params)
      Handles an incoming request with the given parameters.
      Parameters:
      params - The request parameters
      Returns:
      A Mono containing the response object