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

flint.service.ClusterTerminationReason.scala Maven / Gradle / Ivy

The newest version!
package flint
package service

sealed trait ClusterTerminationReason {
  val name = toString
}

object ClusterTerminationReason {
  private[flint] def apply(name: String): ClusterTerminationReason = name match {
    case ClientRequested.name => ClientRequested
    case IdleTimeout.name     => IdleTimeout
    case TTLExpired.name      => TTLExpired
  }

  case object ClientRequested extends ClusterTerminationReason

  case object IdleTimeout extends ClusterTerminationReason

  case object TTLExpired extends ClusterTerminationReason
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy