Package com.bytedesk.core.proto
Class SimpleGrpc.SimpleFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<SimpleGrpc.SimpleFutureStub>
com.bytedesk.core.proto.SimpleGrpc.SimpleFutureStub
- Enclosing class:
- SimpleGrpc
public static final class SimpleGrpc.SimpleFutureStub
extends io.grpc.stub.AbstractFutureStub<SimpleGrpc.SimpleFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service Simple.
The greeting service definition.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSimpleFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) -
Method Summary
Modifier and TypeMethodDescriptionprotected SimpleGrpc.SimpleFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<HelloReply>sayHello(HelloRequest request) Sends a greetingMethods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Constructor Details
-
SimpleFutureStub
private SimpleFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
-
-
Method Details
-
build
protected SimpleGrpc.SimpleFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<SimpleGrpc.SimpleFutureStub>
-
sayHello
public com.google.common.util.concurrent.ListenableFuture<HelloReply> sayHello(HelloRequest request) Sends a greeting
-