public interface LaunchConstrainer
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLaunch(RecoveryType recoveryType)
Determines whether the given
RecoveryType
can be launchHappened right now. |
void |
launchHappened(LaunchOfferRecommendation recommendation,
RecoveryType recoveryType)
Invoked every time a task is launchHappened.
|
void launchHappened(LaunchOfferRecommendation recommendation, RecoveryType recoveryType)
We take a Operation so that frameworks can specify additional metadata, in order to smooth the launch
rate.
recommendation - The OfferRecommendation containing the Launch Operation which occurredrecoveryType - The type of the recovery which has been executedboolean canLaunch(RecoveryType recoveryType)
RecoveryType
can be launchHappened right now.recoveryType - The RecoveryType to be examinedtrue if the offer is safe to launch immediately, false if it should wait