public class SimpleByteBufferManager extends Object implements ByteBufferManager
ByteBufferManager| Constructor and Description |
|---|
SimpleByteBufferManager() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocate(int capacity)
Returns a
ByteBuffer of the given capacity. |
void |
deallocate(ByteBuffer byteBuffer)
No - Op operation
Indicates that the given
byteBuffer is no longer needed and the runtime
may dispose of it however it sees fit. |
public ByteBuffer allocate(int capacity)
ByteBuffer of the given capacity.
Invokers MUST call the ByteBufferManager.deallocate(ByteBuffer) method with the returned
buffer once it's no longer needed.
allocate in interface ByteBufferManagercapacity - the capacity of the returned bufferByteBuffer of the given capacitypublic void deallocate(ByteBuffer byteBuffer)
byteBuffer is no longer needed and the runtime
may dispose of it however it sees fit.deallocate in interface ByteBufferManagerbyteBuffer - the buffer to be deallocated.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.