Package com.iizix.jetty
Class DeflaterPool
java.lang.Object
com.iizix.jetty.DeflaterPool
- All Implemented Interfaces:
AutoCloseable
Constructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionacquire()voidclose()static byte[]compress(DeflaterPool pool, byte[] input) intintvoidvoidwithDeflater(Consumer<Deflater> action) <R> RwithDeflater(Function<Deflater, R> action)
Constructor Details
DeflaterPool
public DeflaterPool(int initialCount, int requestedMaxCount)
Method Details
acquire
release
withDeflater
withDeflater
close
public void close()- Specified by:
closein interfaceAutoCloseable
getPoolSize
public int getPoolSize()getTotalSize
public int getTotalSize()compress