public static final class TimeServiceGrpc.TimeServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<TimeServiceGrpc.TimeServiceBlockingStub>
Optional service, exposed for testing static time scenarios.
Modifier and Type | Method and Description |
---|---|
protected TimeServiceGrpc.TimeServiceBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
java.util.Iterator<TimeServiceOuterClass.GetTimeResponse> |
getTime(TimeServiceOuterClass.GetTimeRequest request)
Returns a stream of time updates.
|
com.google.protobuf.Empty |
setTime(TimeServiceOuterClass.SetTimeRequest request)
Allows clients to change the ledger's clock in an atomic get-and-set operation.
|
protected TimeServiceGrpc.TimeServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<TimeServiceGrpc.TimeServiceBlockingStub>
public java.util.Iterator<TimeServiceOuterClass.GetTimeResponse> getTime(TimeServiceOuterClass.GetTimeRequest request)
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 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)