@Override
        public SSLEngine newClientEngine(String cipher, boolean useAlpn) {
            SSLEngine engine = initEngine(clientContext.createSSLEngine(), cipher, true);
            Conscrypt.setBufferAllocator(engine, NettyBufferAllocator.getInstance());
            if (useAlpn) {
                Conscrypt.setApplicationProtocols(engine, new String[] {ApplicationProtocolNames.HTTP_2});
            }
            return engine;
        }
Enumeration of various types of engines for use with engine-based benchmarks.
benchmark-jmh/src/jmh/java/org/conscrypt/OpenJdkEngineFactory.java