public static final class TimeServiceGrpc.TimeServiceStub extends io.grpc.stub.AbstractStub<TimeServiceGrpc.TimeServiceStub>
Optional service, exposed for testing static time scenarios.
Modifier and Type | Method and 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.
|
protected TimeServiceGrpc.TimeServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<TimeServiceGrpc.TimeServiceStub>
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.
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.