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

public Class DeflaterPool

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

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
DeflaterPool(int
maximum number of Deflaters which can be contained in the pool
capacity
,
int
the default compression level for new Deflater objects
compressionLevel
,
boolean
if true then use GZIP compatible compression for all new Deflater objects
nowrap
)

Create a Pool of Deflater instances.

Method Summary

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

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

Field Detail

compressionLevelback to summary
private final int compressionLevel
nowrapback to summary
private final boolean nowrap

Constructor Detail

DeflaterPoolback to summary
public DeflaterPool(int capacity, int compressionLevel, boolean nowrap)

Create a Pool of Deflater instances.

If given a capacity equal to zero the Deflaters 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 DeflaterPool

Parameters
capacity:int

maximum number of Deflaters which can be contained in the pool

compressionLevel:int

the default compression level for new Deflater objects

nowrap:boolean

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

Method Detail

endback to summary
protected void end(Deflater deflater)

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

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

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

Annotations
@Override
resetback to summary
protected void reset(Deflater deflater)

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

Annotations
@Override