Package io.grpc.stub

Class AbstractFutureStub<S extends AbstractFutureStub<S>>

    • Constructor Detail

      • AbstractFutureStub

        protected AbstractFutureStub​(Channel channel,
                                     CallOptions callOptions)
    • Method Detail

      • newStub

        public static <T extends AbstractStub<T>> T newStub​(AbstractStub.StubFactory<T> factory,
                                                            Channel channel)
        Returns a new future stub with the given channel for the provided method configurations.
        Parameters:
        factory - the factory to create a future stub
        channel - the channel that this stub will use to do communications
        Since:
        1.26.0
      • newStub

        public static <T extends AbstractStub<T>> T newStub​(AbstractStub.StubFactory<T> factory,
                                                            Channel channel,
                                                            CallOptions callOptions)
        Returns a new future stub with the given channel for the provided method configurations.
        Parameters:
        factory - the factory to create a future stub
        channel - the channel that this stub will use to do communications
        callOptions - the runtime call options to be applied to every call on this stub
        Returns:
        a future stub
        Since:
        1.26.0