Package com.ning.compress.gzip
Class GZIPRecycler
java.lang.Object
com.ning.compress.gzip.GZIPRecycler
GZIP-codec-specific "extension" to
BufferRecycler
,
used for recycling expensive objects.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Deflater
protected Inflater
protected static final ThreadLocal
<SoftReference<GZIPRecycler>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GZIPRecycler
instance()
Accessor to get thread-local recycler instancevoid
void
-
Field Details
-
_recyclerRef
-
_inflater
-
_deflater
-
-
Constructor Details
-
GZIPRecycler
public GZIPRecycler()
-
-
Method Details
-
instance
Accessor to get thread-local recycler instance -
allocDeflater
-
releaseDeflater
-
allocInflater
-
releaseInflater
-