Class ComputationRunner

    • Field Detail

      • READ_TIMEOUT

        public static final Duration READ_TIMEOUT
      • SLOW_COMPUTATION_THRESHOLD_NS

        public static final long SLOW_COMPUTATION_THRESHOLD_NS
        See Also:
        Constant Field Values
      • stop

        protected volatile boolean stop
      • drain

        protected volatile boolean drain
      • counter

        protected long counter
      • inRecords

        protected long inRecords
      • inCheckpointRecords

        protected long inCheckpointRecords
      • outRecords

        protected long outRecords
      • lastReadTime

        protected long lastReadTime
      • lastTimerExecution

        protected long lastTimerExecution
      • threadName

        protected String threadName
      • GLOBAL_FAILURE_COUNT_REGISTRY_NAME

        public static final String GLOBAL_FAILURE_COUNT_REGISTRY_NAME
      • registry

        protected final io.dropwizard.metrics5.MetricRegistry registry
      • globalFailureCount

        protected io.dropwizard.metrics5.Counter globalFailureCount
      • failureCount

        protected io.dropwizard.metrics5.Counter failureCount
      • recordSkippedCount

        protected io.dropwizard.metrics5.Counter recordSkippedCount
      • runningCount

        protected io.dropwizard.metrics5.Counter runningCount
      • processRecordTimer

        protected io.dropwizard.metrics5.Timer processRecordTimer
      • processTimerTimer

        protected io.dropwizard.metrics5.Timer processTimerTimer
      • recordActivity

        protected boolean recordActivity
      • lastSpanContext

        protected io.opencensus.trace.SpanContext lastSpanContext
    • Method Detail

      • stop

        public void stop()
      • drain

        public void drain()
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • registerMetrics

        protected void registerMetrics()
      • closeTailer

        protected void closeTailer()
      • continueLoop

        protected boolean continueLoop()
      • processTimer

        protected boolean processTimer()
      • processTimerWithTracing

        protected boolean processTimerWithTracing​(long now,
                                                  LinkedHashMap<String,​Long> sortedTimer)
      • processTimerWithRetry

        protected void processTimerWithRetry​(String key,
                                             Long value)
      • processRecordWithTracing

        protected void processRecordWithTracing​(String from,
                                                Record record)
      • getSpanFromRecord

        protected io.opencensus.trace.Span getSpanFromRecord​(Record record)
      • processRecordWithRetry

        protected void processRecordWithRetry​(String from,
                                              Record record)
      • skipFailureForRecovery

        protected boolean skipFailureForRecovery()
      • getTimeoutDuration

        protected Duration getTimeoutDuration()
      • checkSourceLowWatermark

        protected void checkSourceLowWatermark()
      • checkRecordFlags

        protected void checkRecordFlags​(Record record)
      • checkpointIfNecessary

        protected void checkpointIfNecessary()
      • checkpoint

        protected void checkpoint()
      • saveTimers

        protected void saveTimers()
      • saveState

        protected void saveState()
      • saveOffsets

        protected void saveOffsets()
      • sendRecords

        protected void sendRecords()
      • getLowWatermark

        public Watermark getLowWatermark()
      • setThreadName

        protected void setThreadName​(String message)