@Immutable public final class ByteArrayIOPoolService extends IOPoolService
byte array I/O pool.| Modifier and Type | Field and Description |
|---|---|
private ByteArrayIOPool |
pool |
| Constructor and Description |
|---|
ByteArrayIOPoolService(int initialCapacity)
Constructs a new instance which provides a
byte array I/O pool where each allocated
byte array I/O entry has an initial capacity
of the given number of bytes. |
| Modifier and Type | Method and Description |
|---|---|
IOPool<?> |
get()
Returns an I/O pool.
|
getPriority, toStringprivate final ByteArrayIOPool pool
public ByteArrayIOPoolService(int initialCapacity)
byte array I/O pool where each allocated
byte array I/O entry has an initial capacity
of the given number of bytes.initialCapacity - the initial capacity in bytes.public IOPool<?> get()
IOPoolProviderCalling this method several times may return different I/O pools, so callers should cache the result for subsequent use.
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.