public interface IBufferPool extends IBufferProvider
IBuffer
s.Modifier and Type | Interface and Description |
---|---|
static interface |
IBufferPool.Introspection
Offers additional introspection features for
IBufferPool s. |
Modifier and Type | Method and Description |
---|---|
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. |
getBufferCapacity, provideBuffer, retainBuffer
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.Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html