public class InflaterPool extends CompressionPool<java.util.zip.Inflater>
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
INFINITE_CAPACITY
Constructor and Description |
---|
InflaterPool(int capacity,
boolean nowrap)
Create a Pool of
Inflater instances. |
Modifier and Type | Method and Description |
---|---|
protected void |
end(java.util.zip.Inflater inflater) |
protected java.util.zip.Inflater |
newObject() |
protected void |
reset(java.util.zip.Inflater inflater) |
acquire, doStop, release
addLifeCycleListener, doStart, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
public InflaterPool(int capacity, boolean nowrap)
Inflater
instances.
If given a capacity equal to zero the Inflaters will not be pooled and will be created on acquire and ended on release. If given a negative capacity equal to zero there will be no size restrictions on the InflaterPool
capacity
- maximum number of Inflaters which can be contained in the poolnowrap
- if true then use GZIP compatible compression for all new Inflater objectsprotected java.util.zip.Inflater newObject()
newObject
in class CompressionPool<java.util.zip.Inflater>
protected void end(java.util.zip.Inflater inflater)
end
in class CompressionPool<java.util.zip.Inflater>
protected void reset(java.util.zip.Inflater inflater)
reset
in class CompressionPool<java.util.zip.Inflater>
Copyright © 1995–2020 Webtide. All rights reserved.