public class ShenyuGrpcClient
extends java.lang.Object
implements java.io.Closeable
| 构造器和说明 |
|---|
ShenyuGrpcClient(io.grpc.ManagedChannel channel) |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.concurrent.CompletableFuture<ShenyuGrpcResponse> |
call(org.apache.shenyu.common.dto.MetaData metaData,
io.grpc.CallOptions callOptions,
java.lang.String requestJsons,
io.grpc.MethodDescriptor.MethodType methodType)
Grpc call.
|
void |
close() |
com.google.common.util.concurrent.ListenableFuture<java.lang.Void> |
invoke(ShenyuGrpcCallRequest callParams)
Grpc call.
|
public java.util.concurrent.CompletableFuture<ShenyuGrpcResponse> call(org.apache.shenyu.common.dto.MetaData metaData, io.grpc.CallOptions callOptions, java.lang.String requestJsons, io.grpc.MethodDescriptor.MethodType methodType)
metaData - metadatacallOptions - callOptionsrequestJsons - requestJsonsmethodType - methodTypepublic com.google.common.util.concurrent.ListenableFuture<java.lang.Void> invoke(ShenyuGrpcCallRequest callParams)
callParams - callParamspublic void close()
close 在接口中 java.io.Closeableclose 在接口中 java.lang.AutoCloseableCopyright © 2021 The Apache Software Foundation. All rights reserved.