public class DirectByteBufferProvider extends ThreadPoolBasedByteBufferProvider
ByteBufferProvider implementation that can be used to retrieve direct
ByteBuffer's.
Based on Grizzly Implementation.DEFAULT_MAX_BUFFER_SIZE, maxBufferSize| Constructor and Description |
|---|
DirectByteBufferProvider(String name,
int maxSize,
int baseByteBufferSize,
int growthFactor,
int numberOfPools,
org.mule.runtime.api.profiling.ProfilingService profilingService) |
DirectByteBufferProvider(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 DirectByteBufferProvider(String name, org.mule.runtime.api.profiling.ProfilingService profilingService)
public DirectByteBufferProvider(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–2022 MuleSoft, Inc.. All rights reserved.