Class InflaterPool
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.util.compression.CompressionPool<Inflater>
org.eclipse.jetty.util.compression.InflaterPool
- 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.EntryNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested 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
ConstructorsConstructorDescriptionInflaterPool(int capacity, boolean nowrap) Create a Pool ofInflaterinstances. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidstatic InflaterPoolensurePool(Container container) protected Inflaterprotected voidMethods inherited from class org.eclipse.jetty.util.compression.CompressionPool
acquire, doStart, doStop, getCapacity, getPool, release, setCapacity, toStringMethods 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, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
InflaterPool
public InflaterPool(int capacity, boolean nowrap) Create a Pool ofInflaterinstances.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
-
newPooled
- Specified by:
newPooledin classCompressionPool<Inflater>
-
end
- Specified by:
endin classCompressionPool<Inflater>
-
reset
- Specified by:
resetin classCompressionPool<Inflater>
-
ensurePool
-