public static final class ResourceSinkGrpc.ResourceSinkStub extends io.grpc.stub.AbstractAsyncStub<ResourceSinkGrpc.ResourceSinkStub>
Service where the source is the gRPC client. The source is responsible for initiating connections and opening streams.
| 限定符和类型 | 方法和说明 |
|---|---|
protected ResourceSinkGrpc.ResourceSinkStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
io.grpc.stub.StreamObserver<Mcp.Resources> |
establishResourceStream(io.grpc.stub.StreamObserver<Mcp.RequestResources> responseObserver)
The source, acting as gRPC client, establishes a new resource stream
with the sink.
|
protected ResourceSinkGrpc.ResourceSinkStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build 在类中 io.grpc.stub.AbstractStub<ResourceSinkGrpc.ResourceSinkStub>public io.grpc.stub.StreamObserver<Mcp.Resources> establishResourceStream(io.grpc.stub.StreamObserver<Mcp.RequestResources> responseObserver)
The source, acting as gRPC client, establishes a new resource stream with the sink. The sink sends RequestResources message to and receives Resources messages from the source.
Copyright © 2018–2023 Alibaba Group. All rights reserved.