|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides clients with the ability to obtain and retain pooled IBuffer
s.
Nested Class Summary | |
---|---|
static interface |
IBufferPool.Introspection
Offers additional introspection features for IBufferPool s. |
Method Summary | |
---|---|
int |
evict(int survivors)
Tries to remove as many buffers from this BufferPool and release them as are
needed to let a given maximum number of buffers survive in the pool. |
boolean |
evictOne()
Tries to remove a single buffer from this BufferPool and release it. |
Methods inherited from interface org.eclipse.net4j.buffer.IBufferProvider |
---|
getBufferCapacity, provideBuffer, retainBuffer |
Method Detail |
---|
boolean evictOne()
BufferPool
and release
it.
true
if a buffer could be evicted, false
otherwise.int evict(int survivors)
BufferPool
and release
them as are
needed to let a given maximum number of buffers survive in the pool.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |