Package com.daml.ledger.api.v1.testing
Class TimeServiceGrpc.TimeServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<TimeServiceGrpc.TimeServiceFutureStub>
-
- com.daml.ledger.api.v1.testing.TimeServiceGrpc.TimeServiceFutureStub
-
- Enclosing class:
- TimeServiceGrpc
public static final class TimeServiceGrpc.TimeServiceFutureStub extends io.grpc.stub.AbstractFutureStub<TimeServiceGrpc.TimeServiceFutureStub>
Optional service, exposed for testing static time scenarios.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TimeServiceGrpc.TimeServiceFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
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.
-
-
-
Method Detail
-
build
protected TimeServiceGrpc.TimeServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<TimeServiceGrpc.TimeServiceFutureStub>
-
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. Errors: - ``INVALID_ARGUMENT``: if ``current_time`` is invalid (it MUST precisely match the current time as it's known to the ledger server)
-
-