Class CountMemoryToPublisherConveyor
java.lang.Object
io.datarouter.conveyor.BaseConveyor
io.datarouter.metric.counter.conveyor.CountMemoryToPublisherConveyor
- All Implemented Interfaces:
io.datarouter.conveyor.ConveyorRunnable,Comparable<io.datarouter.conveyor.ConveyorRunnable>,Runnable
public class CountMemoryToPublisherConveyor
extends io.datarouter.conveyor.BaseConveyor
-
Nested Class Summary
Nested classes/interfaces inherited from class io.datarouter.conveyor.BaseConveyor
io.datarouter.conveyor.BaseConveyor.ProcessBatchResult -
Field Summary
Fields inherited from class io.datarouter.conveyor.BaseConveyor
exceptionRecorder, gaugeRecorder, name -
Constructor Summary
ConstructorsConstructorDescriptionCountMemoryToPublisherConveyor(String name, Supplier<Boolean> shouldRun, io.datarouter.conveyor.MemoryBuffer<Map<Long, Map<String, Long>>> buffer, io.datarouter.web.exception.ExceptionRecorder exceptionRecorder, CountPublisher countPublisher, io.datarouter.conveyor.ConveyorGauges conveyorGauges) -
Method Summary
Modifier and TypeMethodDescriptionio.datarouter.conveyor.BaseConveyor.ProcessBatchResultbooleanMethods inherited from class io.datarouter.conveyor.BaseConveyor
getName, interrupted, isShuttingDown, run, setIsShuttingDown, shouldRunMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.datarouter.conveyor.ConveyorRunnable
compareTo
-
Constructor Details
-
CountMemoryToPublisherConveyor
public CountMemoryToPublisherConveyor(String name, Supplier<Boolean> shouldRun, io.datarouter.conveyor.MemoryBuffer<Map<Long, Map<String, Long>>> buffer, io.datarouter.web.exception.ExceptionRecorder exceptionRecorder, CountPublisher countPublisher, io.datarouter.conveyor.ConveyorGauges conveyorGauges)
-
-
Method Details
-
processBatch
public io.datarouter.conveyor.BaseConveyor.ProcessBatchResult processBatch()- Specified by:
processBatchin classio.datarouter.conveyor.BaseConveyor
-
shouldRunOnShutdown
public boolean shouldRunOnShutdown()
-