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

com.evolutiongaming.kafka.journal.HeadCacheError.scala Maven / Gradle / Ivy

The newest version!
package com.evolutiongaming.kafka.journal

import scala.concurrent.duration.FiniteDuration

sealed abstract class HeadCacheError

object HeadCacheError {

  def invalid: HeadCacheError = Invalid

  def timeout(timeout: FiniteDuration): HeadCacheError = Timeout(timeout)


  case object Invalid extends HeadCacheError

  final case class Timeout(timeout: FiniteDuration) extends HeadCacheError
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy