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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    io.datarouter.conveyor.BaseConveyor.ProcessBatchResult
     
    boolean
     

    Methods inherited from class io.datarouter.conveyor.BaseConveyor

    getName, interrupted, isShuttingDown, run, setIsShuttingDown, shouldRun

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      processBatch in class io.datarouter.conveyor.BaseConveyor
    • shouldRunOnShutdown

      public boolean shouldRunOnShutdown()