Package com.oracle.bmc.waiter
Interface TerminationStrategy
-
- All Known Implementing Classes:
MaxAttemptsTerminationStrategy
,MaxTimeTerminationStrategy
public interface TerminationStrategy
Defines the strategy that determines when no more poll attempts should be made.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldTerminate(WaiterConfiguration.WaitContext context)
Returns whether or not polling should be terminated.
-
-
-
Method Detail
-
shouldTerminate
boolean shouldTerminate(WaiterConfiguration.WaitContext context)
Returns whether or not polling should be terminated.- Parameters:
context
- The context after the last poll attempt.- Returns:
- true to terminate polling, false to continue.
-
-