Schnittstelle IBufferPool

Alle Superschnittstellen:
IBufferProvider
Alle bekannten Unterschnittstellen:
IBufferPool.Introspection

public interface IBufferPool extends IBufferProvider
Provides clients with the ability to obtain and retain pooled IBuffers.
Autor:
Eike Stepper
  • Verschachtelte Klassen - Übersicht

    Verschachtelte Klassen
    Modifizierer und Typ
    Schnittstelle
    Beschreibung
    static interface 
    Offers additional introspection features for IBufferPools.

    Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.buffer.IBufferProvider

    IBufferProvider.Notification
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    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
    Tries to remove a single buffer from this BufferPool and release it.

    Von Schnittstelle geerbte Methoden org.eclipse.net4j.buffer.IBufferProvider

    getBufferCapacity, provideBuffer, retainBuffer
  • Methodendetails

    • evictOne

      boolean evictOne()
      Tries to remove a single buffer from this BufferPool and release 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 this BufferPool and release 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.