Package org.eclipse.net4j.buffer
Interface IBufferPool
- 
- All Superinterfaces:
- IBufferProvider
 - All Known Subinterfaces:
- IBufferPool.Introspection
 
 public interface IBufferPool extends IBufferProvider Provides clients with the ability to obtain and retain pooledIBuffers.- Author:
- Eike Stepper
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceIBufferPool.IntrospectionOffers additional introspection features forIBufferPools.- 
Nested classes/interfaces inherited from interface org.eclipse.net4j.buffer.IBufferProviderIBufferProvider.Notification
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intevict(int survivors)Tries to remove as many buffers from thisBufferPoolandreleasethem as are needed to let a given maximum number of buffers survive in the pool.booleanevictOne()Tries to remove a single buffer from thisBufferPoolandreleaseit.- 
Methods inherited from interface org.eclipse.net4j.buffer.IBufferProvidergetBufferCapacity, provideBuffer, retainBuffer
 
- 
 
- 
- 
- 
Method Detail- 
evictOneboolean evictOne() Tries to remove a single buffer from thisBufferPoolandreleaseit.- Returns:
- trueif a buffer could be evicted,- falseotherwise.
 
 - 
evictint evict(int survivors) Tries to remove as many buffers from thisBufferPoolandreleasethem as are needed to let a given maximum number of buffers survive in the pool.- Returns:
- The number of buffers that could be evicted.
 
 
- 
 
-