Search in sources :

Example 16 with BufferCreationPool

use of org.webpieces.data.api.BufferCreationPool in project webpieces by deanhiller.

the class Http2ClientFactory method createHttpClient.

public static Http2Client createHttpClient(Http2Config config, ChannelManager mgr, Executor executor, Time time) {
    BufferCreationPool pool = new BufferCreationPool();
    HpackParser hpackParser = HpackParserFactory.createParser(pool, false);
    InjectionConfig injConfig = new InjectionConfig(hpackParser, time, config);
    return createHttpClient(mgr, injConfig);
}
Also used : HpackParser(com.webpieces.hpack.api.HpackParser) InjectionConfig(com.webpieces.http2engine.api.client.InjectionConfig) BufferCreationPool(org.webpieces.data.api.BufferCreationPool)

Aggregations

BufferCreationPool (org.webpieces.data.api.BufferCreationPool)16 NamedThreadFactory (org.webpieces.util.threading.NamedThreadFactory)9 Executor (java.util.concurrent.Executor)7 BufferPool (org.webpieces.data.api.BufferPool)7 ChannelManager (org.webpieces.nio.api.ChannelManager)7 ChannelManagerFactory (org.webpieces.nio.api.ChannelManagerFactory)7 InetSocketAddress (java.net.InetSocketAddress)6 AsyncConfig (org.webpieces.asyncserver.api.AsyncConfig)4 AsyncServer (org.webpieces.asyncserver.api.AsyncServer)4 AsyncServerManager (org.webpieces.asyncserver.api.AsyncServerManager)4 HttpParser (org.webpieces.httpparser.api.HttpParser)4 Channel (org.webpieces.nio.api.channels.Channel)4 TCPChannel (org.webpieces.nio.api.channels.TCPChannel)4 HpackParser (com.webpieces.hpack.api.HpackParser)3 InjectionConfig (com.webpieces.http2engine.api.client.InjectionConfig)3 ByteBuffer (java.nio.ByteBuffer)3 SSLEngine (javax.net.ssl.SSLEngine)3 Before (org.junit.Before)2 Test (org.junit.Test)2 DataListener (org.webpieces.nio.api.handlers.DataListener)2