Class GrpcServerCdiExtension.ServerProducer

  • Enclosing class:
    GrpcServerCdiExtension

    @ApplicationScoped
    public static class GrpcServerCdiExtension.ServerProducer
    extends Object
    A CDI producer that can supply the running GrpcServer an in-process Channel.
    • Constructor Detail

      • ServerProducer

        public ServerProducer()
    • Method Detail

      • channel

        @Produces
        public io.grpc.Channel channel()
        Produces an in-process Channel to connect to the running gRPC server.
        Returns:
        an in-process Channel to connect to the running gRPC server
      • channelBuilder

        @Produces
        public io.grpc.inprocess.InProcessChannelBuilder channelBuilder()
        Produces an in-process InProcessChannelBuilder to connect to the running gRPC server.
        Returns:
        an in-process InProcessChannelBuilder to connect to the running gRPC server