Class OutboxThread

java.lang.Object
com.avoka.fc.core.outbox.OutboxThread
All Implemented Interfaces:
Runnable

public class OutboxThread extends Object implements Runnable
Provides an OutboxThread to pull events from queue send to OutboxProcessor to process. This class follows the Producer/Consumer design pattern.
Since:
22.10.0
  • Method Details

    • getQueueAndStart

      public static BlockingQueue<Long> getQueueAndStart()
      Return the Blocking Queue.If the thread is not running, it starts to run
      Returns:
      the Blocking Queue
    • isRunning

      public static Boolean isRunning()
    • run

      public void run()
      consume the outbox queue and process
      Specified by:
      run in interface Runnable