Class ActiveContractsServiceGrpc.ActiveContractsServiceImplBase

  • All Implemented Interfaces:
    io.grpc.BindableService
    Enclosing class:
    ActiveContractsServiceGrpc

    public abstract static class ActiveContractsServiceGrpc.ActiveContractsServiceImplBase
    extends java.lang.Object
    implements io.grpc.BindableService
     Allows clients to initialize themselves according to a fairly recent state of the ledger without reading through all transactions that were committed since the ledger's creation.
     
    • Constructor Detail

      • ActiveContractsServiceImplBase

        public ActiveContractsServiceImplBase()
    • Method Detail

      • getActiveContracts

        public void getActiveContracts​(ActiveContractsServiceOuterClass.GetActiveContractsRequest request,
                                       io.grpc.stub.StreamObserver<ActiveContractsServiceOuterClass.GetActiveContractsResponse> responseObserver)
         Returns a stream of the latest snapshot of active contracts.
         If there are no active contracts, the stream returns a single GetActiveContractsResponse message with the offset at which the snapshot has been taken.
         Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the transaction service.
         Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
         
      • bindService

        public final io.grpc.ServerServiceDefinition bindService()
        Specified by:
        bindService in interface io.grpc.BindableService