private abstract class IOCache.OutputBufferPool extends Object implements Pool<IOCache.Buffer,IOException>
Pool.Releasable<E extends Exception>| Modifier | Constructor and Description |
|---|---|
private |
IOCache.OutputBufferPool() |
| Modifier and Type | Method and Description |
|---|---|
IOCache.Buffer |
allocate()
Allocates a resource from this pool.
|
void |
release(IOCache.Buffer buffer)
Releases a previously allocated resource to this pool.
|
public IOCache.Buffer allocate() throws IOException
PoolMind that a pool implementation should not hold references to its allocated resources because this could cause a memory leak.
allocate in interface Pool<IOCache.Buffer,IOException>IOExceptionpublic void release(IOCache.Buffer buffer) throws IOException
PoolIllegalArgumentException or an
IllegalStateException upon the conditions explained below.release in interface Pool<IOCache.Buffer,IOException>buffer - a resource.IOExceptionCopyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.