Issue #5246 - add Inflater/Deflater pools to server dump
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
7a04b3eb19
commit
2ed89cbccd
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue