Moved message verification and DB writes off the IO thread.

This commit is contained in:
akwizgran
2011-12-05 22:52:00 +00:00
parent ab722f9371
commit e24a3218ca
24 changed files with 468 additions and 169 deletions

View File

@@ -10,7 +10,7 @@ public interface ProtocolReader {
Ack readAck() throws IOException;
boolean hasBatch() throws IOException;
Batch readBatch() throws IOException;
UnverifiedBatch readBatch() throws IOException;
boolean hasOffer() throws IOException;
Offer readOffer() throws IOException;

View File

@@ -0,0 +1,8 @@
package net.sf.briar.api.protocol;
import java.security.GeneralSecurityException;
public interface UnverifiedBatch {
Batch verify() throws GeneralSecurityException;
}