Package org.logevents.observers.batch
Class ThrottleBatcherFactory
- java.lang.Object
-
- org.logevents.observers.batch.ThrottleBatcherFactory
-
- All Implemented Interfaces:
BatcherFactory
public class ThrottleBatcherFactory extends Object implements BatcherFactory
-
-
Constructor Summary
Constructors Constructor Description ThrottleBatcherFactory(ScheduledExecutorService executor, LogEventShutdownHook shutdownHook, String throttles)
-
-
-
Constructor Detail
-
ThrottleBatcherFactory
public ThrottleBatcherFactory(ScheduledExecutorService executor, LogEventShutdownHook shutdownHook, String throttles)
-
-
Method Detail
-
createBatcher
public <T> Batcher<T> createBatcher(Consumer<List<T>> processor)
- Specified by:
createBatcher
in interfaceBatcherFactory
-
-