Package io.grpc.health.v1
Class HealthGrpc.HealthFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<HealthGrpc.HealthFutureStub>
-
- io.grpc.health.v1.HealthGrpc.HealthFutureStub
-
- Enclosing class:
- HealthGrpc
public static final class HealthGrpc.HealthFutureStub extends AbstractFutureStub<HealthGrpc.HealthFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service Health.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
AbstractStub.StubFactory<T extends AbstractStub<T>>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HealthGrpc.HealthFutureStub
build(Channel channel, CallOptions callOptions)
Returns a new stub with the given channel for the provided method configurations.com.google.common.util.concurrent.ListenableFuture<HealthCheckResponse>
check(HealthCheckRequest request)
If the requested service is unknown, the call will fail with status NOT_FOUND.-
Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStub
-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected HealthGrpc.HealthFutureStub build(Channel channel, CallOptions callOptions)
Description copied from class:AbstractStub
Returns a new stub with the given channel for the provided method configurations.- Specified by:
build
in classAbstractStub<HealthGrpc.HealthFutureStub>
- Parameters:
channel
- the channel that this stub will use to do communicationscallOptions
- the runtime call options to be applied to every call on this stub
-
check
public com.google.common.util.concurrent.ListenableFuture<HealthCheckResponse> check(HealthCheckRequest request)
If the requested service is unknown, the call will fail with status NOT_FOUND.
-
-