Skip to main content
summaryrefslogtreecommitdiffstats
blob: 693976a3d8b8928a084c2c6f2a38058c63dc5b15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
package org.eclipse.jetty.io;

public class BuffersFactory
{
    public static Buffers newBuffers(Buffers.Type headerType, int headerSize, Buffers.Type bufferType, int bufferSize, Buffers.Type otherType,int maxSize)
    {
        if (maxSize>=0)
            return new PooledBuffers(headerType,headerSize,bufferType,bufferSize,otherType,maxSize);
        return new ThreadLocalBuffers(headerType,headerSize,bufferType,bufferSize,otherType);
    }
}

Back to the top