public abstract class StandardGrpcStubFactory extends Object
| 构造器和说明 |
|---|
StandardGrpcStubFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends io.grpc.stub.AbstractStub<T>> |
createStub(Class<T> stubType,
io.grpc.Channel channel) |
protected String |
getFactoryMethodName()
Derives the name of the factory method from the given stub type.
|
abstract boolean |
isApplicable(Class<? extends io.grpc.stub.AbstractStub<?>> stubType)
Used to resolve a factory that matches the particular stub type.
|
public <T extends io.grpc.stub.AbstractStub<T>> io.grpc.stub.AbstractStub<T> createStub(Class<T> stubType, io.grpc.Channel channel)
protected String getFactoryMethodName()
public abstract boolean isApplicable(Class<? extends io.grpc.stub.AbstractStub<?>> stubType)
stubType - The type of the stub that needs to be created.Copyright © 2022. All rights reserved.