Class InflaterPool
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.compression.CompressionPool<Inflater>
org.eclipse.jetty.util.compression.InflaterPool
- All Implemented Interfaces:
LifeCycle
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener -
Field Summary
FieldsFields inherited from class CompressionPool
INFINITE_CAPACITY -
Constructor Summary
ConstructorsConstructorDescriptionInflaterPool(int capacity, boolean nowrap) Create a Pool ofInflaterinstances. -
Method Summary
Methods inherited from class CompressionPool
acquire, doStop, release, toStringMethods inherited from class AbstractLifeCycle
addLifeCycleListener, doStart, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
Field Details
-
nowrap
private final boolean nowrap
-
-
Constructor Details
-
InflaterPool
public InflaterPool(int capacity, boolean nowrap) Create a Pool ofInflaterinstances.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
- Parameters:
capacity- maximum number of Inflaters which can be contained in the poolnowrap- if true then use GZIP compatible compression for all new Inflater objects
-
-
Method Details
-
newObject
- Specified by:
newObjectin classCompressionPool<Inflater>
-
end
- Specified by:
endin classCompressionPool<Inflater>
-
reset
- Specified by:
resetin classCompressionPool<Inflater>
-