PredefinedInterner

com.netflix.atlas.core.util.PredefinedInterner
class PredefinedInterner[T](predefValues: Seq[T], fallback: Interner[T]) extends Interner[T]

Interner that starts with a predefined set of values. If a request is made to intern a value that is not in the predefined list, then it will be forwarded to the specified fallback interner.

Attributes

Graph
Supertypes
trait Interner[T]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def intern(value: T): T

Returns a representative instance that is equal to the specified instance. Check the particular implementation before making any assumptions about the ability to just use reference equality on interned instances.

Returns a representative instance that is equal to the specified instance. Check the particular implementation before making any assumptions about the ability to just use reference equality on interned instances.

Attributes

def isPredefined(value: T): Boolean
def size: Int

Returns the number of items that are currently interned.

Returns the number of items that are currently interned.

Attributes