BatchUpdateTagIndex

com.netflix.atlas.core.index.BatchUpdateTagIndex
See theBatchUpdateTagIndex companion object
class BatchUpdateTagIndex[T <: TaggedItem](registry: Registry, newIndex: (Array[T]) => TagIndex[T])(implicit evidence$1: ClassTag[T]) extends MutableTagIndex[T]

Mutable tag index that batches updates and atomically swaps in a new index in the background at a configured interval.

Value parameters

newIndex

Function to create a new index from the set of items.

registry

Spectator registry to use for reporting metrics.

Attributes

Companion
object
Graph
Supertypes
trait MutableTagIndex[T]
trait TagIndex[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def buildTime: Long

Returns the timestamp for when the current index was built.

Returns the timestamp for when the current index was built.

Attributes

def findItems(query: TagQuery): List[T]
def findKeys(query: TagQuery): List[String]
def findTags(query: TagQuery): List[Tag]
def findValues(query: TagQuery): List[String]
def numPending: Int

Returns the number of pending updates.

Returns the number of pending updates.

Attributes

def rebuildIndex(): Unit

Rebuild the index to include all of the pending updates that have accumulated. Any expired items will also be removed.

Rebuild the index to include all of the pending updates that have accumulated. Any expired items will also be removed.

Attributes

def rebuildIndex(items: Array[T]): Unit
def rebuildIndex(items: List[T]): Unit
def size: Int
def update(item: T): Unit
def update(items: List[T]): Unit

Update the index with the given items.

Update the index with the given items.

Attributes