Class AsyncStubFactory

java.lang.Object
net.devh.boot.grpc.client.stubfactory.StandardJavaGrpcStubFactory
net.devh.boot.grpc.client.stubfactory.AsyncStubFactory
All Implemented Interfaces:
StubFactory

public class AsyncStubFactory extends StandardJavaGrpcStubFactory
  • Constructor Details

    • AsyncStubFactory

      public AsyncStubFactory()
  • Method Details

    • isApplicable

      public boolean isApplicable(Class<? extends AbstractStub<?>> stubType)
      Description copied from interface: StubFactory
      Used to resolve a factory that matches the particular stub type.
      Parameters:
      stubType - The type of the stub that needs to be created.
      Returns:
      True if this particular factory is capable of creating instances of this stub type. False otherwise.
    • getFactoryMethodName

      protected String getFactoryMethodName()
      Description copied from class: StandardJavaGrpcStubFactory
      Derives the name of the factory method from the given stub type.
      Specified by:
      getFactoryMethodName in class StandardJavaGrpcStubFactory
      Returns:
      The name of the factory method.