Search in sources :

Example 1 with BufferFactory

use of org.apache.synapse.transport.passthru.util.BufferFactory in project wso2-synapse by wso2.

the class BaseConfiguration method build.

public void build() throws AxisFault {
    iOBufferSize = conf.getIOBufferSize();
    if (workerPool == null) {
        workerPool = WorkerPoolFactory.getWorkerPool(conf.getWorkerPoolCoreSize(), conf.getWorkerPoolMaxSize(), conf.getWorkerThreadKeepaliveSec(), conf.getWorkerPoolQueueLen(), PASSTHROUGH_THREAD_GROUP, PASSTHROUGH_THREAD_ID);
    }
    httpParams = buildHttpParams();
    ioReactorConfig = buildIOReactorConfig();
    bufferFactory = new BufferFactory(iOBufferSize, new HeapByteBufferAllocator(), 512);
}
Also used : HeapByteBufferAllocator(org.apache.http.nio.util.HeapByteBufferAllocator) BufferFactory(org.apache.synapse.transport.passthru.util.BufferFactory)

Aggregations

HeapByteBufferAllocator (org.apache.http.nio.util.HeapByteBufferAllocator)1 BufferFactory (org.apache.synapse.transport.passthru.util.BufferFactory)1