Switched ExecutionStrategy to EWYK.

This commit is contained in:
Simone Bordet 2014-12-18 17:13:21 +01:00
parent e35c51eb7d
commit 4ccd5207b5
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public class HTTP2Connection extends AbstractConnection
private final Parser parser;
private final ISession session;
private final int bufferSize;
private final ExecutionStrategy executionStrategy; // TODO: make it pluggable from outside
private final ExecutionStrategy executionStrategy; // TODO: make it pluggable from outside ?
public HTTP2Connection(ByteBufferPool byteBufferPool, Executor executor, EndPoint endPoint, Parser parser, ISession session, int bufferSize, boolean dispatchIO)
{
@ -51,7 +51,7 @@ public class HTTP2Connection extends AbstractConnection
this.parser = parser;
this.session = session;
this.bufferSize = bufferSize;
this.executionStrategy = new ExecutionStrategy.Iterative(new HTTP2Producer(), executor);
this.executionStrategy = new ExecutionStrategy.EatWhatYouKill(new HTTP2Producer(), executor);
}
protected ISession getSession()