Top Fields Constructors Methods
org.eclipse.jetty.util.compression

public Class InflaterPool

extends CompressionPool<Inflater>
Class Inheritance
Imports
java.util.zip.Inflater, org.eclipse.jetty.util.component.Container, org.eclipse.jetty.util.thread.ThreadPool

Field Summary

Modifier and TypeField and Description
private final boolean
Inherited from org.eclipse.jetty.util.compression.CompressionPool:
DEFAULT_CAPACITY

Constructor Summary

AccessConstructor and Description
public
InflaterPool(int
maximum number of Inflaters which can be contained in the pool
capacity
,
boolean
if true then use GZIP compatible compression for all new Inflater objects
nowrap
)

Create a Pool of Inflater instances.

Method Summary

Modifier and TypeMethod and Description
protected void
public static InflaterPool
ensurePool(Container container)

protected Inflater
protected void
Inherited from org.eclipse.jetty.util.compression.CompressionPool:
acquiredoStartdoStopgetCapacitygetPoolreleasesetCapacitytoString

Field Detail

nowrapback to summary
private final boolean nowrap

Constructor Detail

InflaterPoolback to summary
public InflaterPool(int capacity, boolean nowrap)

Create a Pool of 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

Parameters
capacity:int

maximum number of Inflaters which can be contained in the pool

nowrap:boolean

if true then use GZIP compatible compression for all new Inflater objects

Method Detail

endback to summary
protected void end(Inflater inflater)

Implements abstract org.eclipse.jetty.util.compression.CompressionPool.end.

Annotations
@Override
ensurePoolback to summary
public static InflaterPool ensurePool(Container container)
newPooledback to summary
protected Inflater newPooled()

Implements abstract org.eclipse.jetty.util.compression.CompressionPool.newPooled.

Annotations
@Override
resetback to summary
protected void reset(Inflater inflater)

Implements abstract org.eclipse.jetty.util.compression.CompressionPool.reset.

Annotations
@Override