EvictingArray

io.ino.solrs.PerformanceStats.EvictingArray
See theEvictingArray companion object
class EvictingArray[T]

Mutable, fixed sized array of Long values, which evicts old values. E.g. an EvictingArray of size 2 with added values 1, 2, 3 will have stored the values 2, 3.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def add(value: T): Option[T]

Adds the given value to the array. If the array was already full so that the oldest element is dropped, this will be returned.

Adds the given value to the array. If the array was already full so that the oldest element is dropped, this will be returned.

Attributes

def apply(index: Int): T
def isEmpty: Boolean
def lastUpdate(relative: Int): T
def lastUpdatePos: Int
def values: Array[T]