Issue #5246 - add Inflater/Deflater pools to server dump

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-09-09 10:24:31 +10:00
parent 7a04b3eb19
commit 2ed89cbccd
1 changed files with 11 additions and 0 deletions

View File

@ -134,4 +134,15 @@ public abstract class CompressionPool<T> extends AbstractLifeCycle
} }
_numObjects.set(0); _numObjects.set(0);
} }
@Override
public String toString()
{
return String.format("%s@%x{%s,size=%d,capacity=%s}",
getClass().getSimpleName(),
hashCode(),
getState(),
_pool.size(),
_capacity < 0 ? "UNLIMITED" : _capacity);
}
} }