Measure performance of DB lookups for parent blocks.

This commit is contained in:
akwizgran
2019-02-12 14:33:12 +00:00
parent b342759e06
commit e01e0b57c3
9 changed files with 159 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ import org.briarproject.bramble.api.transport.KeySetId;
import org.briarproject.bramble.api.transport.TransportKeys;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
@@ -150,6 +151,8 @@ public interface DatabaseComponent {
boolean containsLocalAuthor(Transaction txn, AuthorId local)
throws DbException;
int countFakes(Transaction txn, List<byte[]> ids) throws DbException;
/**
* Deletes the message with the given ID. Unlike
* {@link #removeMessage(Transaction, MessageId)}, the message ID,