Interface OutboxCollector

All Known Implementing Classes:
PartitionCollector, TaskBasedCollector

public interface OutboxCollector
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    schedule(String tenant, long delay, boolean withEmptyCheck)
    Schedules the collector execution for the given tenant
    void
    Starts the collector
    void
    stop(long waitMillis)
    Stops the collector
  • Method Details

    • start

      void start()
      Starts the collector
    • stop

      void stop(long waitMillis) throws InterruptedException
      Stops the collector
      Parameters:
      waitMillis - millis to wait for a stopped collector.
      Throws:
      InterruptedException
    • isRunning

      boolean isRunning()
      Returns:
      true, if the collector is currently running
    • schedule

      void schedule(String tenant, long delay, boolean withEmptyCheck)
      Schedules the collector execution for the given tenant
      Parameters:
      tenant - the tenant
      delay - the delay in millis
      withEmptyCheck - checks if empty before scheduling