/** * Returns the default {@link SslBufferPool} used when no pool is * specified in the constructor. */ public static synchronized SslBufferPool getDefaultBufferPool() { if (defaultBufferPool == null) { defaultBufferPool = new SslBufferPool(); } return defaultBufferPool; }
@Override SslBufferPool newBufferPool() { return new SslBufferPool(true, true); }
SslBufferPool newBufferPool() { return new SslBufferPool(false, false); }
bufferPool = new ThreadLocalSslBufferPool(maxSslBufferBytes, preallocateSslBuffer, true); } else { bufferPool = new SslBufferPool(maxSslBufferBytes, preallocateSslBuffer, true);