public abstract class ThreadPoolBasedByteBufferProvider extends Object implements org.mule.runtime.api.memory.provider.ByteBufferProvider<ByteBuffer>
ByteBufferProvider| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_BUFFER_SIZE |
protected int |
maxBufferSize |
| Modifier | Constructor and Description |
|---|---|
protected |
ThreadPoolBasedByteBufferProvider(String name,
int maxBufferSize,
int baseByteBufferSize,
int growthFactor,
int numberOfPools,
org.mule.runtime.api.profiling.ProfilingService profilingService) |
protected |
ThreadPoolBasedByteBufferProvider(String name,
org.mule.runtime.api.profiling.ProfilingService profilingService) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocate(int size) |
ByteBuffer |
allocateAtLeast(int size) |
void |
dispose() |
protected abstract ByteBuffer |
doAllocate(int size) |
byte[] |
getByteArray(int size) |
protected ByteBufferPool<ByteBuffer>[] |
getThreadLocalPools() |
ByteBuffer |
reallocate(ByteBuffer oldBuffer,
int newSize) |
void |
release(ByteBuffer byteBuffer) |
public static final int DEFAULT_MAX_BUFFER_SIZE
protected final int maxBufferSize
protected ThreadPoolBasedByteBufferProvider(String name, org.mule.runtime.api.profiling.ProfilingService profilingService)
protected ThreadPoolBasedByteBufferProvider(String name, int maxBufferSize, int baseByteBufferSize, int growthFactor, int numberOfPools, org.mule.runtime.api.profiling.ProfilingService profilingService)
protected abstract ByteBuffer doAllocate(int size)
public ByteBuffer allocate(int size)
allocate in interface org.mule.runtime.api.memory.provider.ByteBufferProvider<ByteBuffer>public ByteBuffer allocateAtLeast(int size)
allocateAtLeast in interface org.mule.runtime.api.memory.provider.ByteBufferProvider<ByteBuffer>public ByteBuffer reallocate(ByteBuffer oldBuffer, int newSize)
reallocate in interface org.mule.runtime.api.memory.provider.ByteBufferProvider<ByteBuffer>public void release(ByteBuffer byteBuffer)
release in interface org.mule.runtime.api.memory.provider.ByteBufferProvider<ByteBuffer>public byte[] getByteArray(int size)
getByteArray in interface org.mule.runtime.api.memory.provider.ByteBufferProvider<ByteBuffer>public void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposabledispose in interface org.mule.runtime.api.memory.provider.ByteBufferProvider<ByteBuffer>protected ByteBufferPool<ByteBuffer>[] getThreadLocalPools()
Copyright © 2003–2022 MuleSoft, Inc.. All rights reserved.