|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jppf.utils.pooling.DirectBufferPoolImpl
public class DirectBufferPoolImpl
| Nested Class Summary | |
|---|---|
static class |
DirectBufferPoolImpl.LinkedData<E>
|
| Constructor Summary | |
|---|---|
DirectBufferPoolImpl()
|
|
| Method Summary | |
|---|---|
ByteBuffer |
get()
Get an object from the pool, or create it if the pool is empty. |
boolean |
isEmpty()
Determine whether this pool is empty. |
void |
put(ByteBuffer buffer)
Release an object into this pool, and make it availble. |
int |
size()
Get the number of objects in this pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectBufferPoolImpl()
| Method Detail |
|---|
public ByteBuffer get()
get in interface ObjectPool<ByteBuffer>public void put(ByteBuffer buffer)
put in interface ObjectPool<ByteBuffer>buffer - the object to release.public boolean isEmpty()
isEmpty in interface ObjectPool<ByteBuffer>true if the pool is empty, false otherwise.public int size()
size in interface ObjectPool<ByteBuffer>
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||