Moved the subscription and transport timestamps out of the contacts

table so it's not necessary to hold a write lock on the (heavily used)
contacts table to update them.
This commit is contained in:
akwizgran
2011-08-14 14:46:12 +02:00
parent 2c13e35dc4
commit 5e0aadd373
12 changed files with 122 additions and 63 deletions

View File

@@ -9,6 +9,6 @@ import net.sf.briar.api.protocol.Group;
public interface SubscriptionWriter {
/** Writes the contents of the update. */
void writeSubscriptionUpdate(Map<Group, Long> subs, long timestamp)
void writeSubscriptions(Map<Group, Long> subs, long timestamp)
throws IOException;
}

View File

@@ -7,6 +7,6 @@ import java.util.Map;
public interface TransportWriter {
/** Writes the contents of the update. */
void writeTransportUpdate(Map<String, Map<String, String>> transports,
void writeTransports(Map<String, Map<String, String>> transports,
long timestamp) throws IOException;
}