Package com.arpnetworking.utility
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 TypeMethodDescriptionvoid
waitOnFileNotFoundTrigger
(int attempt) Blocks the current thread.void
Blocks the current thread.
-
Method Details
-
waitOnReadTrigger
Blocks the current thread.- Throws:
InterruptedException
- thrown when the wait is interrupted.
-
waitOnFileNotFoundTrigger
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.
-