Class InflaterPool

All Implemented Interfaces:
Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle

public class InflaterPool extends CompressionPool<Inflater>
  • Constructor Details

    • InflaterPool

      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

      capacity - maximum number of Inflaters which can be contained in the pool
      nowrap - if true then use GZIP compatible compression for all new Inflater objects
  • Method Details