Package com.daml.ledger.api.v2.testing
Class TimeServiceGrpc.TimeServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<TimeServiceGrpc.TimeServiceFutureStub>
com.daml.ledger.api.v2.testing.TimeServiceGrpc.TimeServiceFutureStub
- Enclosing class:
- TimeServiceGrpc
public static final class TimeServiceGrpc.TimeServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<TimeServiceGrpc.TimeServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service TimeService.
Optional service, exposed for testing static time scenarios.
-
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>>
-
Method Summary
Modifier and TypeMethodDescriptionprotected TimeServiceGrpc.TimeServiceFutureStub
build
(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<TimeServiceOuterClass.GetTimeResponse>
Returns the current time according to the ledger server.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>
Allows clients to change the ledger's clock in an atomic get-and-set operation.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 Details
-
build
protected TimeServiceGrpc.TimeServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
build
in classio.grpc.stub.AbstractStub<TimeServiceGrpc.TimeServiceFutureStub>
-
getTime
public com.google.common.util.concurrent.ListenableFuture<TimeServiceOuterClass.GetTimeResponse> getTime(TimeServiceOuterClass.GetTimeRequest request) Returns the current time according to the ledger server.
-
setTime
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> setTime(TimeServiceOuterClass.SetTimeRequest request) Allows clients to change the ledger's clock in an atomic get-and-set operation.
-