public class CachingAbbreviator extends Object implements Abbreviator
Abbreviator
that caches results from a delegate
abbreviator.
Logger names are typically reused constantly, so caching abbreviations
of class names helps performance.Constructor and Description |
---|
CachingAbbreviator(Abbreviator delegate) |
public CachingAbbreviator(Abbreviator delegate)
public String abbreviate(String in)
abbreviate
in interface Abbreviator
public void clear()
Copyright © 2020. All rights reserved.