store
abstract fun store(requestId: RequestId, request: Request): Result<RequestProcessingStatus, PostboxError>(source)
Store a request in the Postbox for later processing.
Return
the status of the request processing
If the request is new or has not been processed, the status will be RequestProcessingStatus.Pending
If the request is currently being processed, the status will be RequestProcessingStatus.Processing
If the request has been processed, the status will be RequestProcessingStatus.Processed
If the request has been marked as dead, the status will be RequestProcessingStatus.Dead
Parameters
pending
the request to store, which includes an id and the request itself
If the request is already stored, it will ignore the new value and return the status of the existing one.