Package com.linecorp.armeria.client.grpc
Interface GrpcClientStubFactory
public interface GrpcClientStubFactory
A factory that creates a gRPC client stub.
-
Method Summary
Modifier and TypeMethodDescription@Nullable io.grpc.ServiceDescriptor
findServiceDescriptor
(Class<?> clientType) Returns aServiceDescriptor
for theclientType
.newClientStub
(Class<?> clientType, io.grpc.Channel channel) Returns a gRPC client stub from the specifiedclientType
andChannel
.
-
Method Details
-
findServiceDescriptor
Returns aServiceDescriptor
for theclientType
.null
if the givenclientType
is unsupported. -
newClientStub
Returns a gRPC client stub from the specifiedclientType
andChannel
.
-