接口 ResourceSourceGrpc.AsyncService

所有已知实现类:
NacosMcpService, ResourceSourceGrpc.ResourceSourceImplBase
封闭类:
ResourceSourceGrpc

public static interface ResourceSourceGrpc.AsyncService
 Service where the sink is the gRPC client. The sink is responsible for
 initiating connections and opening streams.
 
  • 方法概要

    修饰符和类型
    方法
    说明
    default io.grpc.stub.StreamObserver<Mcp.RequestResources>
    establishResourceStream(io.grpc.stub.StreamObserver<Mcp.Resources> responseObserver)
    The sink, acting as gRPC client, establishes a new resource stream with the source.
  • 方法详细资料

    • establishResourceStream

      default io.grpc.stub.StreamObserver<Mcp.RequestResources> establishResourceStream(io.grpc.stub.StreamObserver<Mcp.Resources> responseObserver)
       The sink, acting as gRPC client, establishes a new resource stream
       with the source. The sink sends RequestResources message to
       and receives Resources messages from the source.