Merge branch '2190-mailbox-reset-retransmission-times' into 'master'

Resolve "Method for resetting retransmission times"

Closes #2190

See merge request briar/briar!1559
This commit is contained in:
akwizgran
2021-12-09 12:11:54 +00:00
5 changed files with 98 additions and 2 deletions

View File

@@ -471,6 +471,14 @@ public interface DatabaseComponent extends TransactionManager {
Map<MessageId, Integer> getUnackedMessagesToSend(Transaction txn,
ContactId c) throws DbException;
/**
* Reset the transmission count, expiry time and ETA of all messages that
* are eligible to be sent to the given contact. This includes messages that
* have already been sent and are not yet due for retransmission.
*/
void resetUnackedMessagesToSend(Transaction txn, ContactId c)
throws DbException;
/**
* Returns the total length, including headers, of all messages that are
* eligible to be sent to the given contact. This may include messages