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

com.sksamuel.elastic4s.requests.task.TaskStatus.scala Maven / Gradle / Ivy

There is a newer version: 8.15.4
Show newest version
package com.sksamuel.elastic4s.requests.task

import com.fasterxml.jackson.annotation.JsonProperty

import scala.concurrent.duration.{DurationLong, FiniteDuration}

case class TaskStatus(
                       total: Long,
                       updated: Long,
                       created: Long,
                       deleted: Long,
                       batches: Long,
                       @JsonProperty("version_conflicts") private val version_conflicts: Long,
                       noops: Long,
                       retries : Retries,
                       @JsonProperty("throttled_millis") private val throttled_millis: Long
                     ) {
  def versionConflicts: Long = version_conflicts

  def throttledTime: FiniteDuration = throttled_millis.millis
}

case class Retries(bulk: Long, search: Long)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy