private ConscryptAlpnSslEngine(SSLEngine engine, ByteBufAllocator alloc, List<String> protocols) { super(engine); // Configure the Conscrypt engine to use Netty's buffer allocator. This is a trade-off of memory vs // performance. // // If no allocator is provided, the engine will internally allocate a direct buffer of max packet size in // order to optimize JNI calls (this happens the first time it is provided a non-direct buffer from the // application). // // Alternatively, if an allocator is provided, no internal buffer will be created and direct buffers will be // retrieved from the allocator on-demand. if (USE_BUFFER_ALLOCATOR) { Conscrypt.setBufferAllocator(engine, new BufferAllocatorAdapter(alloc)); } // Set the list of supported ALPN protocols on the engine. Conscrypt.setApplicationProtocols(engine, protocols.toArray(new String[0])); }
private ConscryptAlpnSslEngine(SSLEngine engine, ByteBufAllocator alloc, List<String> protocols) { super(engine); // Configure the Conscrypt engine to use Netty's buffer allocator. This is a trade-off of memory vs // performance. // // If no allocator is provided, the engine will internally allocate a direct buffer of max packet size in // order to optimize JNI calls (this happens the first time it is provided a non-direct buffer from the // application). // // Alternatively, if an allocator is provided, no internal buffer will be created and direct buffers will be // retrieved from the allocator on-demand. if (USE_BUFFER_ALLOCATOR) { Conscrypt.setBufferAllocator(engine, new BufferAllocatorAdapter(alloc)); } // Set the list of supported ALPN protocols on the engine. Conscrypt.setApplicationProtocols(engine, protocols.toArray(new String[0])); }
private ConscryptAlpnSslEngine(SSLEngine engine, ByteBufAllocator alloc, List<String> protocols) { super(engine); // Configure the Conscrypt engine to use Netty's buffer allocator. This is a trade-off of memory vs // performance. // // If no allocator is provided, the engine will internally allocate a direct buffer of max packet size in // order to optimize JNI calls (this happens the first time it is provided a non-direct buffer from the // application). // // Alternatively, if an allocator is provided, no internal buffer will be created and direct buffers will be // retrieved from the allocator on-demand. if (USE_BUFFER_ALLOCATOR) { Conscrypt.setBufferAllocator(engine, new BufferAllocatorAdapter(alloc)); } // Set the list of supported ALPN protocols on the engine. Conscrypt.setApplicationProtocols(engine, protocols.toArray(new String[0])); }
private ConscryptAlpnSslEngine(SSLEngine engine, ByteBufAllocator alloc, List<String> protocols) { super(engine); // Configure the Conscrypt engine to use Netty's buffer allocator. This is a trade-off of memory vs // performance. // // If no allocator is provided, the engine will internally allocate a direct buffer of max packet size in // order to optimize JNI calls (this happens the first time it is provided a non-direct buffer from the // application). // // Alternatively, if an allocator is provided, no internal buffer will be created and direct buffers will be // retrieved from the allocator on-demand. if (USE_BUFFER_ALLOCATOR) { Conscrypt.setBufferAllocator(engine, new BufferAllocatorAdapter(alloc)); } // Set the list of supported ALPN protocols on the engine. Conscrypt.setApplicationProtocols(engine, protocols.toArray(new String[protocols.size()])); }
private ConscryptAlpnSslEngine(SSLEngine engine, ByteBufAllocator alloc, List<String> protocols) { super(engine); // Configure the Conscrypt engine to use Netty's buffer allocator. This is a trade-off of memory vs // performance. // // If no allocator is provided, the engine will internally allocate a direct buffer of max packet size in // order to optimize JNI calls (this happens the first time it is provided a non-direct buffer from the // application). // // Alternatively, if an allocator is provided, no internal buffer will be created and direct buffers will be // retrieved from the allocator on-demand. if (USE_BUFFER_ALLOCATOR) { Conscrypt.setBufferAllocator(engine, new BufferAllocatorAdapter(alloc)); } // Set the list of supported ALPN protocols on the engine. Conscrypt.setApplicationProtocols(engine, protocols.toArray(new String[protocols.size()])); }
private ConscryptAlpnSslEngine(SSLEngine engine, ByteBufAllocator alloc, List<String> protocols) { super(engine); // Configure the Conscrypt engine to use Netty's buffer allocator. This is a trade-off of memory vs // performance. // // If no allocator is provided, the engine will internally allocate a direct buffer of max packet size in // order to optimize JNI calls (this happens the first time it is provided a non-direct buffer from the // application). // // Alternatively, if an allocator is provided, no internal buffer will be created and direct buffers will be // retrieved from the allocator on-demand. if (USE_BUFFER_ALLOCATOR) { Conscrypt.setBufferAllocator(engine, new BufferAllocatorAdapter(alloc)); } // Set the list of supported ALPN protocols on the engine. Conscrypt.setApplicationProtocols(engine, protocols.toArray(new String[0])); }