Class TimeServiceGrpc.TimeServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<TimeServiceGrpc.TimeServiceStub>
com.daml.ledger.api.v2.testing.TimeServiceGrpc.TimeServiceStub
Enclosing class:
TimeServiceGrpc

public static final class TimeServiceGrpc.TimeServiceStub extends io.grpc.stub.AbstractAsyncStub<TimeServiceGrpc.TimeServiceStub>
A stub to allow clients to do asynchronous rpc calls to service TimeService.
 Optional service, exposed for testing static time scenarios.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    getTime(TimeServiceOuterClass.GetTimeRequest request, io.grpc.stub.StreamObserver<TimeServiceOuterClass.GetTimeResponse> responseObserver)
    Returns the current time according to the ledger server.
    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.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait