All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ing.baker.il.failurestrategy.ExceptionStrategyOutcome.scala Maven / Gradle / Ivy

The newest version!
package com.ing.baker.il.failurestrategy

object ExceptionStrategyOutcome {

  /**
    * Indicates that this transition should not be retried but other transitions in the petri net still can.
    */
  case object BlockTransition extends ExceptionStrategyOutcome

  /**
    * Retries firing the transition after some delay.
    */
  case class RetryWithDelay(delay: Long) extends ExceptionStrategyOutcome {
    require(delay >= 0, "Delay must be greater or equal then zero")
  }

  case class Continue(eventName: String) extends ExceptionStrategyOutcome
}

sealed trait ExceptionStrategyOutcome




© 2015 - 2024 Weber Informatics LLC | Privacy Policy