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 org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
FieldsFields inherited from class org.eclipse.jetty.util.compression.CompressionPool
INFINITE_CAPACITY
-
Constructor Summary
ConstructorsConstructorDescriptionInflaterPool
(int capacity, boolean nowrap) Create a Pool ofInflater
instances. -
Method Summary
Methods inherited from class org.eclipse.jetty.util.compression.CompressionPool
acquire, doStop, release, toString
Methods inherited from class org.eclipse.jetty.util.component.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 ofInflater
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
- 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:
newObject
in classCompressionPool<Inflater>
-
end
- Specified by:
end
in classCompressionPool<Inflater>
-
reset
- Specified by:
reset
in classCompressionPool<Inflater>
-