setVt
Updates the visibility timeout (VT) for a specific item in the given queue.
Return
A Result wrapping the updated identifier of the item or an error if the operation fails.
Parameters
The name of the queue containing the item.
The identifier of the item whose visibility timeout should be updated.
The new visibility timeout value as a Duration.
suspend fun setVt(queue: String, id: Long, vt: Duration): Result<Long>(source)
Updates the visibility timeout (VT) for a message in the specified queue.
This method interacts with the database to set a new visibility timeout for a given message ID within the specified queue, where the timeout is defined in seconds.
Return
A Result containing the message ID of the message whose visibility timeout was updated.
Parameters
The name of the queue where the message exists.
The unique identifier of the message for which the visibility timeout is being updated.
The new visibility timeout represented as a Duration.