mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Add database method to reset retransmission times
Will be used to ensure messages are not stranded on a Mailbox, when such is added, removed, or otherwise changed. Closes #2190.
This commit is contained in:
@@ -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. Messages are selected in
|
||||
* the same way as {@link #getUnackedMessagesToSend(Transaction, ContactId)}
|
||||
*/
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user