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 |
prepend(ByteBuffer buffer,
boolean recycle) |
void |
recycle() |
public Lease(ByteBufferPool byteBufferPool)
public ByteBuffer acquire(int capacity, boolean direct)
public void prepend(ByteBuffer buffer, boolean recycle)
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()
Copyright © 1995-2015 Webtide. All Rights Reserved.