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 SummaryNested classes/interfaces inherited from class CompressionPoolCompressionPool.EntryNested classes/interfaces inherited from class AbstractLifeCycleAbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface ContainerContainer.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface DumpableDumpable.DumpableContainerNested classes/interfaces inherited from interface LifeCycleLifeCycle.Listener
- 
Field SummaryFields inherited from class CompressionPoolDEFAULT_CAPACITY
- 
Constructor SummaryConstructorsConstructorDescriptionDeflaterPool(int capacity, int compressionLevel, boolean nowrap) Create a Pool ofDeflaterinstances.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidstatic DeflaterPoolensurePool(Container container) protected Deflaterprotected voidMethods inherited from class CompressionPoolacquire, doStart, doStop, getCapacity, getPool, release, setCapacity, toStringMethods inherited from class ContainerLifeCycleaddBean, 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, updateBeansMethods inherited from class AbstractLifeCyclegetEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ContainergetCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainerisDumpable
- 
Constructor Details- 
DeflaterPoolpublic DeflaterPool(int capacity, int compressionLevel, boolean nowrap) Create a Pool ofDeflaterinstances.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 pool
- compressionLevel- the default compression level for new Deflater objects
- nowrap- if true then use GZIP compatible compression for all new Deflater objects
 
 
- 
- 
Method Details- 
newPooled- Specified by:
- newPooledin class- CompressionPool<Deflater>
 
- 
end- Specified by:
- endin class- CompressionPool<Deflater>
 
- 
reset- Specified by:
- resetin class- CompressionPool<Deflater>
 
- 
ensurePool
 
-