add transactional versions of some API calls

This commit is contained in:
ialokim
2021-12-06 21:08:05 +01:00
parent 8d5803098b
commit d29812f055
6 changed files with 55 additions and 15 deletions

View File

@@ -107,6 +107,12 @@ public interface ContactManager {
*/
String getHandshakeLink() throws DbException;
/**
* Returns the handshake link that needs to be sent to a contact we want
* to add.
*/
String getHandshakeLink(Transaction txn) throws DbException;
/**
* Creates a {@link PendingContact} from the given handshake link and
* alias, adds it to the database and returns it.