Package org.eclipse.net4j.buffer
Schnittstelle IBufferPool
- Alle Superschnittstellen:
IBufferProvider
- Alle bekannten Unterschnittstellen:
IBufferPool.Introspection
Provides clients with the ability to obtain and retain pooled
IBuffer
s.- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interface
Offers additional introspection features forIBufferPool
s.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.buffer.IBufferProvider
IBufferProvider.Notification
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
evict
(int survivors) Tries to remove as many buffers from thisBufferPool
andrelease
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 thisBufferPool
andrelease
it.Von Schnittstelle geerbte Methoden org.eclipse.net4j.buffer.IBufferProvider
getBufferCapacity, provideBuffer, retainBuffer
-
Methodendetails
-
evictOne
boolean evictOne()Tries to remove a single buffer from thisBufferPool
andrelease
it.- Gibt zurück:
true
if a buffer could be evicted,false
otherwise.
-
evict
int evict(int survivors) Tries to remove as many buffers from thisBufferPool
andrelease
them as are needed to let a given maximum number of buffers survive in the pool.- Gibt zurück:
- The number of buffers that could be evicted.
-