class
Amber::Pipe::Compression::DeflaterPool
- Amber::Pipe::Compression::DeflaterPool
- Reference
- Object
Overview
Keeps up to idle_limit compressors between responses. Safe to share across fibers and threads.
:nodoc:
Defined in:
amber/pipes/compression/deflater.crConstructors
Instance Method Summary
-
#checkin(deflater : Deflater) : Nil
Takes back deflater after its response ends.
- #checkout : Deflater
-
#idle_count : Int32
How many compressors wait in the pool now.
- #idle_limit : Int32
- #level : Int32
Constructor Detail
Instance Method Detail
Takes back deflater after its response ends. One that cannot be reset, or that does not fit, is freed now.