public static class ByteBufferPool.Lease extends Object
Constructor and Description |
---|
Lease(ByteBufferPool byteBufferPool) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
acquire(int capacity,
boolean direct) |
void |
append(ByteBuffer buffer,
boolean recycle) |
List<ByteBuffer> |
getByteBuffers() |
int |
getSize() |
long |
getTotalLength() |
void |
insert(int index,
ByteBuffer buffer,
boolean recycle) |
void |
recycle() |
void |
release(ByteBuffer buffer) |
public Lease(ByteBufferPool byteBufferPool)
public ByteBuffer acquire(int capacity, boolean direct)
public void append(ByteBuffer buffer, boolean recycle)
public void insert(int index, ByteBuffer buffer, boolean recycle)
public List<ByteBuffer> getByteBuffers()
public long getTotalLength()
public int getSize()
public void recycle()
public void release(ByteBuffer buffer)
Copyright © 2010 - 2020 Adobe. All Rights Reserved