Transactions
Queue recovery
Recover stuck queued transactions with the Java SDK.
POST
/transactions/recoverUse blnk.transactions().recoverQueue for this operation.
Call the method
ApiResponse<JsonNode> response = blnk.transactions().recoverQueue(
RecoverQueueRequest.create().threshold("24h")
);
| Field | Type | Description |
|---|---|---|
threshold | String | Minimum 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"
}
| Field | Type | Description |
|---|---|---|
recovered | Number | Number of transactions re-enqueued for processing. |
threshold | String | Threshold duration that was used. |