public class PooledByteArrayHolders extends Object
ByteArrayHolders. Use it only when you need a
relatively large byte array, AND DON'T FORGET TO RETURN OBJECTS TO THE POOL| Modifier and Type | Field and Description |
|---|---|
protected int |
defaultSize |
protected ByteArrayHolderFactory |
factory |
| Modifier and Type | Method and Description |
|---|---|
static PooledByteArrayHolders |
getInstance() |
org.apache.commons.pool2.ObjectPool<ByteArrayHolder> |
getPool() |
void |
setFactory(ByteArrayHolderFactory factory)
You should be very careful about this one.
|
protected ByteArrayHolderFactory factory
protected int defaultSize
public static PooledByteArrayHolders getInstance()
public void setFactory(ByteArrayHolderFactory factory)
factory - public org.apache.commons.pool2.ObjectPool<ByteArrayHolder> getPool()
Copyright © 2017. All rights reserved.