41 enum class CallStatus { More, Done, Errored };
42 using RequestType = org::xrpl::rpc::v1::GetLedgerDataRequest;
43 using ResponseType = org::xrpl::rpc::v1::GetLedgerDataResponse;
44 using StubType = org::xrpl::rpc::v1::XRPLedgerAPIService::Stub;
49 std::unique_ptr<ResponseType> cur_;
50 std::unique_ptr<ResponseType> next_;
53 std::unique_ptr<grpc::ClientContext> context_;
56 unsigned char nextPrefix_;
59 std::optional<std::string> predecessorKey_;
62 AsyncGrpcCall(uint32_t seq, ripple::uint256
const& marker, std::optional<ripple::uint256>
const& nextMarker);
64 static std::vector<AsyncGrpcCall>
65 makeAsyncCalls(uint32_t
const sequence, uint32_t
const numMarkers);
69 std::unique_ptr<StubType>& stub,
70 grpc::CompletionQueue& cq,
76 call(std::unique_ptr<org::xrpl::rpc::v1::XRPLedgerAPIService::Stub>& stub, grpc::CompletionQueue& cq);