Transactions

Queue recovery

Recover stuck queued transactions with the Java SDK.

POST/transactions/recover

Use blnk.transactions().recoverQueue for this operation.

Call the method

ApiResponse<JsonNode> response = blnk.transactions().recoverQueue(
    RecoverQueueRequest.create().threshold("24h")
);
FieldTypeDescription
thresholdStringMinimum age of transactions to recover (for example 5m, 1h). Default 2m. Minimum 2 minutes.

Check how many were recovered

Read response.data().get("recovered") to see how many transactions were re-enqueued. Use Search or get by ID to verify individual transaction statuses afterward.

Response

{
  "recovered": 3,
  "threshold": "5m0s"
}
FieldTypeDescription
recoveredNumberNumber of transactions re-enqueued for processing.
thresholdStringThreshold duration that was used.