Interface Trigger

All Known Implementing Classes:
TimerTrigger

public interface Trigger
A simple interface that blocks the current thread.
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot io)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Blocks the current thread.
    void
    Blocks the current thread.
  • Method Details

    • waitOnReadTrigger

      void waitOnReadTrigger() throws InterruptedException
      Blocks the current thread.
      Throws:
      InterruptedException - thrown when the wait is interrupted.
    • waitOnFileNotFoundTrigger

      void waitOnFileNotFoundTrigger(int attempt) throws InterruptedException
      Blocks the current thread.
      Parameters:
      attempt - The attempt number to open or find the file. Used for exponential backoff.
      Throws:
      InterruptedException - thrown when the wait is interrupted.