Moved message verification into a separate thread pool.

This commit is contained in:
akwizgran
2011-12-07 21:33:14 +00:00
parent 22dfe947fa
commit e2cb1027af
11 changed files with 161 additions and 37 deletions

View File

@@ -186,8 +186,8 @@ public class BatchConnectionReadWriteTest extends TestCase {
bob.getInstance(ProtocolReaderFactory.class);
BatchTransportReader reader = new TestBatchTransportReader(in);
IncomingBatchConnection batchIn = new IncomingBatchConnection(
new ImmediateExecutor(), db, connFactory, protoFactory, ctx,
reader, tag);
new ImmediateExecutor(), new ImmediateExecutor(), db,
connFactory, protoFactory, ctx, reader, tag);
// No messages should have been added yet
assertFalse(listener.messagesAdded);
// Read whatever needs to be read