Calculate the timestamp outside the subscription/transport update

writer - this will allow it to be saved so new connections can work
out whether they should send updates.
This commit is contained in:
akwizgran
2011-08-14 13:36:21 +02:00
parent 4497774311
commit 2c13e35dc4
9 changed files with 31 additions and 27 deletions

View File

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