Package com.daml.ledger.api.v1.testing
Class TimeServiceGrpc.TimeServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<TimeServiceGrpc.TimeServiceStub>
-
- com.daml.ledger.api.v1.testing.TimeServiceGrpc.TimeServiceStub
-
- Enclosing class:
- TimeServiceGrpc
public static final class TimeServiceGrpc.TimeServiceStub extends io.grpc.stub.AbstractAsyncStub<TimeServiceGrpc.TimeServiceStub>
Optional service, exposed for testing static time scenarios.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TimeServiceGrpc.TimeServiceStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
void
getTime(TimeServiceOuterClass.GetTimeRequest request, io.grpc.stub.StreamObserver<TimeServiceOuterClass.GetTimeResponse> responseObserver)
Returns a stream of time updates.void
setTime(TimeServiceOuterClass.SetTimeRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Allows clients to change the ledger's clock in an atomic get-and-set operation.
-
-
-
Method Detail
-
build
protected TimeServiceGrpc.TimeServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<TimeServiceGrpc.TimeServiceStub>
-
getTime
public void getTime(TimeServiceOuterClass.GetTimeRequest request, io.grpc.stub.StreamObserver<TimeServiceOuterClass.GetTimeResponse> responseObserver)
Returns a stream of time updates. Always returns at least one response, where the first one is the current time. Subsequent responses are emitted whenever the ledger server's time is updated.
-
setTime
public void setTime(TimeServiceOuterClass.SetTimeRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
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)
-
-