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

eventstore.operations.Inspection.scala Maven / Gradle / Ivy

The newest version!
package eventstore
package operations

import scala.util.Try

private[eventstore] trait Inspection {
  def expected: Class[_]
  def pf: PartialFunction[Try[In], Inspection.Decision]
}

private[eventstore] object Inspection {
  sealed trait Decision

  object Decision {
    case object Stop extends Decision
    case object Retry extends Decision
    case object Unexpected extends Decision
    case class Fail(value: EsException) extends Decision
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy