Class ThreadLocalRecyclerFactory
- java.lang.Object
-
- org.apache.logging.log4j.layout.template.json.util.ThreadLocalRecyclerFactory
-
- All Implemented Interfaces:
RecyclerFactory
public class ThreadLocalRecyclerFactory extends java.lang.Object implements RecyclerFactory
-
-
Field Summary
Fields Modifier and Type Field Description private static ThreadLocalRecyclerFactory
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
ThreadLocalRecyclerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> Recycler<V>
create(java.util.function.Supplier<V> supplier, java.util.function.Consumer<V> cleaner)
static ThreadLocalRecyclerFactory
getInstance()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.logging.log4j.layout.template.json.util.RecyclerFactory
create
-
-
-
-
Field Detail
-
INSTANCE
private static final ThreadLocalRecyclerFactory INSTANCE
-
-
Method Detail
-
getInstance
public static ThreadLocalRecyclerFactory getInstance()
-
create
public <V> Recycler<V> create(java.util.function.Supplier<V> supplier, java.util.function.Consumer<V> cleaner)
- Specified by:
create
in interfaceRecyclerFactory
-
-