Class DeflaterPool

java.lang.Object
com.iizix.jetty.DeflaterPool
All Implemented Interfaces:
AutoCloseable

public class DeflaterPool extends Object implements AutoCloseable
  • Constructor Details

    • DeflaterPool

      public DeflaterPool(int initialCount, int requestedMaxCount)
  • Method Details

    • acquire

      public Deflater acquire()
    • release

      public void release(Deflater deflater)
    • withDeflater

      public <R> R withDeflater(Function<Deflater,R> action)
    • withDeflater

      public void withDeflater(Consumer<Deflater> action)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getPoolSize

      public int getPoolSize()
    • getTotalSize

      public int getTotalSize()
    • compress

      public static byte[] compress(DeflaterPool pool, byte[] input)