public class HeapByteBufferProvider extends ThreadPoolBasedByteBufferProvider
ByteBufferProvider implementation that can be used to retrieve heap
ByteBuffer's.
Based on Grizzly Implementation.DEFAULT_MAX_BUFFER_SIZE, maxBufferSize| Constructor and Description |
|---|
HeapByteBufferProvider(String name,
int maxSize,
int baseByteBufferSize,
int growthFactor,
int numberOfPools,
org.mule.runtime.api.profiling.ProfilingService profilingService) |
HeapByteBufferProvider(String name,
org.mule.runtime.api.profiling.ProfilingService profilingService) |
| Modifier and Type | Method and Description |
|---|---|
protected ByteBuffer |
doAllocate(int size) |
allocate, allocateAtLeast, dispose, getByteArray, getThreadLocalPools, reallocate, releasepublic HeapByteBufferProvider(String name, org.mule.runtime.api.profiling.ProfilingService profilingService)
public HeapByteBufferProvider(String name, int maxSize, int baseByteBufferSize, int growthFactor, int numberOfPools, org.mule.runtime.api.profiling.ProfilingService profilingService)
protected ByteBuffer doAllocate(int size)
doAllocate in class ThreadPoolBasedByteBufferProviderCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.