Class QueueingRecyclerFactory
- java.lang.Object
-
- org.apache.logging.log4j.layout.template.json.util.QueueingRecyclerFactory
-
- All Implemented Interfaces:
RecyclerFactory
public class QueueingRecyclerFactory extends java.lang.Object implements RecyclerFactory
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Supplier<java.util.Queue<java.lang.Object>>
queueSupplier
-
Constructor Summary
Constructors Constructor Description QueueingRecyclerFactory(java.util.function.Supplier<java.util.Queue<java.lang.Object>> queueSupplier)
-
Method Summary
All 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)
-
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
-
-
-
-
Method Detail
-
create
public <V> Recycler<V> create(java.util.function.Supplier<V> supplier, java.util.function.Consumer<V> cleaner)
- Specified by:
create
in interfaceRecyclerFactory
-
-