Package org.openjdk.jmc.common.util
Class FormatThreadLocal<T extends Format>
- java.lang.Object
- 
- java.lang.ThreadLocal<T>
- 
- org.openjdk.jmc.common.util.FormatThreadLocal<T>
 
 
- 
- Type Parameters:
- T- the type of formatter to provide
 
 public class FormatThreadLocal<T extends Format> extends ThreadLocal<T> Thread local implementation to use prototypes ofFormatsubclasses that are not thread safe by themselves. UseThreadLocal.get()on an instance of this class to get a thread local formatter instance.
- 
- 
Constructor SummaryConstructors Constructor Description FormatThreadLocal(T prototype)Create a new thread local formatter generator.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TinitialValue()- 
Methods inherited from class java.lang.ThreadLocalget, remove, set, withInitial
 
- 
 
- 
- 
- 
Constructor Detail- 
FormatThreadLocalpublic FormatThreadLocal(T prototype) Create a new thread local formatter generator.- Parameters:
- prototype- prototype to use when getting a formatter
 
 
- 
 - 
Method Detail- 
initialValueprotected T initialValue() - Overrides:
- initialValuein class- ThreadLocal<T extends Format>
 
 
- 
 
-