@ThreadSafe public abstract class DecoratingIoBufferPool extends IoBufferPool
Modifier and Type | Field and Description |
---|---|
protected IoBufferPool |
pool |
Modifier | Constructor and Description |
---|---|
protected |
DecoratingIoBufferPool() |
protected |
DecoratingIoBufferPool(IoBufferPool pool) |
Modifier and Type | Method and Description |
---|---|
IoBuffer |
allocate()
Allocates a resource from this pool.
|
String |
toString()
Returns a string representation of this object for debugging and logging
purposes.
|
release
equals, hashCode
@Nullable protected IoBufferPool pool
protected DecoratingIoBufferPool()
protected DecoratingIoBufferPool(IoBufferPool pool)
public IoBuffer allocate() throws IOException
Pool
Mind that a pool implementation should not hold references to its allocated resources because this could cause a memory leak.
IOException
Copyright © 2012–2015 Schlichtherle IT Services. All rights reserved.