Package com.daml.ledger.api.v1.testing
Interface TimeServiceGrpc.AsyncService
-
- All Known Implementing Classes:
TimeServiceGrpc.TimeServiceImplBase
- Enclosing class:
- TimeServiceGrpc
public static interface TimeServiceGrpc.AsyncService
Optional service, exposed for testing static time scenarios.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
getTime(TimeServiceOuterClass.GetTimeRequest request, io.grpc.stub.StreamObserver<TimeServiceOuterClass.GetTimeResponse> responseObserver)
Returns a stream of time updates.default 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
-
getTime
default 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
default 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.
-
-