public static class ByteBufferPool.Lease
extends java.lang.Object
| Constructor | Description |
|---|---|
Lease(ByteBufferPool byteBufferPool) |
| Modifier and Type | Method | Description |
|---|---|---|
java.nio.ByteBuffer |
acquire(int capacity,
boolean direct) |
|
void |
append(java.nio.ByteBuffer buffer,
boolean recycle) |
|
java.util.List<java.nio.ByteBuffer> |
getByteBuffers() |
|
int |
getSize() |
|
long |
getTotalLength() |
|
void |
insert(int index,
java.nio.ByteBuffer buffer,
boolean recycle) |
|
void |
recycle() |
public Lease(ByteBufferPool byteBufferPool)
public java.nio.ByteBuffer acquire(int capacity,
boolean direct)
public void append(java.nio.ByteBuffer buffer,
boolean recycle)
public void insert(int index,
java.nio.ByteBuffer buffer,
boolean recycle)
public java.util.List<java.nio.ByteBuffer> getByteBuffers()
public long getTotalLength()
public int getSize()
public void recycle()
Copyright © 1995–2017 Webtide. All rights reserved.