Skip to content

Commit

Permalink
Issue #5246 - add Inflater/Deflater pools to server dump
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <[email protected]>
  • Loading branch information
lachlan-roberts committed Sep 9, 2020
1 parent 7a04b3e commit 2ed89cb
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,15 @@ public void doStop()
}
_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);
}
}

0 comments on commit 2ed89cb

Please sign in to comment.