Class DeflaterPool
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.util.compression.CompressionPool<Deflater>
org.eclipse.jetty.util.compression.DeflaterPool
- All Implemented Interfaces:
Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.compression.CompressionPool
CompressionPool.Entry
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
Fields inherited from class org.eclipse.jetty.util.compression.CompressionPool
DEFAULT_CAPACITY
-
Constructor Summary
ConstructorDescriptionDeflaterPool
(int capacity, int compressionLevel, boolean nowrap) Create a Pool ofDeflater
instances. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
static DeflaterPool
ensurePool
(Container container) protected Deflater
protected void
Methods inherited from class org.eclipse.jetty.util.compression.CompressionPool
acquire, doStart, doStop, getCapacity, getPool, release, setCapacity, toString
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
DeflaterPool
public DeflaterPool(int capacity, int compressionLevel, boolean nowrap) Create a Pool ofDeflater
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
- maximum number of Deflaters which can be contained in the poolcompressionLevel
- the default compression level for new Deflater objectsnowrap
- if true then use GZIP compatible compression for all new Deflater objects
-
-
Method Details
-
newPooled
- Specified by:
newPooled
in classCompressionPool<Deflater>
-
end
- Specified by:
end
in classCompressionPool<Deflater>
-
reset
- Specified by:
reset
in classCompressionPool<Deflater>
-
ensurePool
-