| Modifier and Type | Class and Description |
|---|---|
| public class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Pool | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | CompressionPool(int
maximum number of Objects which can be contained in the pool capacity)Create a Pool of |
| Modifier and Type | Method and Description |
|---|---|
| public CompressionPool | |
| protected void | doStart()
Overrides org. |
| public void | doStop()
Overrides org. |
| protected abstract void | |
| public int | |
| public Pool | |
| protected abstract T | |
| public void | release(CompressionPool<T>.
returns this Object to the pool or calls entryend(Object) if the pool is full.Release an Entry. |
| protected abstract void | |
| public void | |
| public String | toString()
Overrides org. |
| _capacity | back to summary |
|---|---|
| private int _capacity | |
| _pool | back to summary |
|---|---|
| private Pool<CompressionPool<T>. | |
| DEFAULT_CAPACITY | back to summary |
|---|---|
| public static final int DEFAULT_CAPACITY | |
| CompressionPool | back to summary |
|---|---|
| public CompressionPool(int capacity) Create a Pool of
| |
| acquire | back to summary |
|---|---|
public CompressionPool
| |
| doStart | back to summary |
|---|---|
| protected void doStart() throws Exception Overrides org. Doc from org. Starts the managed lifecycle beans in the order they were added.
| |
| doStop | back to summary |
|---|---|
| public void doStop() throws Exception Overrides org. Doc from org. Stops the managed lifecycle beans in the reverse order they were added.
| |
| end | back to summary |
|---|---|
| protected abstract void end(T object) | |
| getCapacity | back to summary |
|---|---|
| public int getCapacity() | |
| getPool | back to summary |
|---|---|
| public Pool | |
| newPooled | back to summary |
|---|---|
| protected abstract T newPooled() | |
| release | back to summary |
|---|---|
| public void release(CompressionPool<T>. Release an Entry.
| |
| reset | back to summary |
|---|---|
| protected abstract void reset(T object) | |
| setCapacity | back to summary |
|---|---|
| public void setCapacity(int capacity) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Pool. | |
| private final T |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. |
| public T | |
| public void |
| _entry | back to summary |
|---|---|
| private final Pool. | |
| _value | back to summary |
|---|---|
| private final T _value | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(T value) | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(T value, Pool. | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| get | back to summary |
|---|---|
| public T get() | |
| release | back to summary |
|---|---|
| public void release() | |