diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/compression/CompressionPool.java b/jetty-util/src/main/java/org/eclipse/jetty/util/compression/CompressionPool.java index 9e3634aa273..5552dbaa9b4 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/compression/CompressionPool.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/compression/CompressionPool.java @@ -134,4 +134,15 @@ public abstract class CompressionPool extends AbstractLifeCycle } _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); + } }