Class FfillDispatcher

java.lang.Object
com.framed.core.Service
com.framed.io.dispatch.Dispatcher
com.framed.streamer.dispatcher.FfillDispatcher

public class FfillDispatcher extends Dispatcher
  • Constructor Details

    • FfillDispatcher

      public FfillDispatcher(EventBus eventBus, org.json.JSONArray devices, Long frequencyMillis)
  • Method Details

    • push

      public void push(DataPoint<?> dataPoint) throws IOException
      Description copied from class: Dispatcher
      Pushes a single datapoint to the underlying sink.

      Invoked on the dispatcher's worker thread. Implementations may throw IOException to signal a transient failure, which triggers retry with exponential backoff.

      Specified by:
      push in class Dispatcher
      Parameters:
      dataPoint - the datapoint to push
      Throws:
      IOException - if the push fails due to a transient IO error and should be retried
    • pushBatch

      public void pushBatch(List<DataPoint<?>> timeSeries)
      Description copied from class: Dispatcher
      Pushes a batch of datapoints to the underlying sink.
      Specified by:
      pushBatch in class Dispatcher
      Parameters:
      timeSeries - the datapoints to push
    • stop

      public void stop()
      Description copied from class: Service
      Stops the service.

      By default, this method logs a message indicating that no stop logic is implemented. Subclasses should override this method to provide custom shutdown behavior when necessary.

      Overrides:
      stop in class Dispatcher