接口 Dispatcher

所有已知实现类:
DefaultDispatcher

public interface Dispatcher
Interface for dispatching JSON-RPC requests to appropriate handlers. The Dispatcher is responsible for routing incoming JSON-RPC requests to the correct method handlers and managing both synchronous and streaming responses.
  • 方法详细资料

    • dispatch

      JSONRPCResponse dispatch(JSONRPCRequest request)
      Dispatches a JSON-RPC request for synchronous processing.
      参数:
      request - The JSON-RPC request to be processed
      返回:
      A JSON-RPC response containing the result or error
    • dispatchStream

      reactor.core.publisher.Flux<JSONRPCResponse> dispatchStream(JSONRPCRequest request)
      Dispatches a JSON-RPC request for streaming/asynchronous processing. This method is used for operations that return multiple responses over time, such as streaming updates or event subscriptions.
      参数:
      request - The JSON-RPC request to be processed
      返回:
      A Flux of JSON-RPC responses for streaming results