The batch handlers, one per request type
The caps on how handlers are called, and the default retrieval scope
Optional Readonlylimit?: LimitsThe caps on batch size per request type and on handler calls in flight, matched to what the backend accepts.
Optional Readonlyscope?: StoreScopeThe retrieval scope that fills in the members a lookup scope leaves out, one by one, as a fallback rather than a ceiling. The handlers receive the locale priority of the scope as filled in, with the locale the lookup states taking precedence over the default one.
An immutable StoreClient serving its requests in batches through handlers
RangeError If an update or insert state carries an id that differs from its entry,
or if a create state member filling an identifier slot is not a single path segment
Creates a batching store client backed by a set of request handlers.
Coalesces concurrent StoreClient calls into batches, each served by the matching
handlersentry. The client adds conditional CRUD semantics on top of the handlers:create,updateanddeleteprobe for existence through thedetecthandler before handing the mutation tomodify.lookupprobes for existence the same way, except for avirtuallookup, which goes straight to thedetailhandler.createmints the identifier of the new resource, if its state names none, and links it to the collecting resource as a new collection member.The
modifyhandler receives only requests whosestatecarries noidother than theirentry. A request failing this check is rejected on its own, and the rest of the batch still applies. If themodifyhandler throws, the error rejects every request in its batch.