public static class ByteBufferPool.Lease extends Object
| 构造器和说明 |
|---|
Lease(ByteBufferPool byteBufferPool) |
| 限定符和类型 | 方法和说明 |
|---|---|
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() |
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()
Copyright © 2017. All rights reserved.