Package com.daml.ledger.api.v1.testing
Class TimeServiceGrpc.TimeServiceImplBase
- java.lang.Object
 - 
- com.daml.ledger.api.v1.testing.TimeServiceGrpc.TimeServiceImplBase
 
 
- 
- All Implemented Interfaces:
 io.grpc.BindableService
- Enclosing class:
 - TimeServiceGrpc
 
public abstract static class TimeServiceGrpc.TimeServiceImplBase extends java.lang.Object implements io.grpc.BindableServiceOptional service, exposed for testing static time scenarios.
 
- 
- 
Constructor Summary
Constructors Constructor Description TimeServiceImplBase() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.ServerServiceDefinitionbindService()voidgetTime(TimeServiceOuterClass.GetTimeRequest request, io.grpc.stub.StreamObserver<TimeServiceOuterClass.GetTimeResponse> responseObserver)Returns a stream of time updates.voidsetTime(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
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.
 
- 
bindService
public final io.grpc.ServerServiceDefinition bindService()
- Specified by:
 bindServicein interfaceio.grpc.BindableService
 
 - 
 
 -