object Context
- Alphabetic
- By Inheritance
- Context
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Entry extends AnyRef
An untyped representation of a Context entry.
- final class Key[T] extends AnyRef
Encapsulates the type, name and empty value for a context entry.
Encapsulates the type, name and empty value for a context entry. All reads and writes from a context instance must be done using a context key, which will ensure the right type is used on both operations. The key's name is used when configuring mappings and incoming/outgoing/returning codecs for context propagation across channels.
If you try to read an entry from a context and such entry is not present, the empty value for the key is returned instead.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Empty: Context
A Context that doesn't have any entries nor tags.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def key[T](name: String, emptyValue: T): Key[T]
Creates a new Context.Key instance that can be used to insert and retrieve values from the context entries.
Creates a new Context.Key instance that can be used to insert and retrieve values from the context entries. Context keys must have a unique name since they will be looked up in transports by their name and the context entries are internally stored using their key name as index.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def of[T, U](keyOne: Key[T], valueOne: T, keyTwo: Key[U], valueTwo: U, tags: TagSet): Context
Creates a new Context instance with two entries and the provided tags.
- def of[T, U](keyOne: Key[T], valueOne: T, keyTwo: Key[U], valueTwo: U): Context
Creates a new Context instance with two entries and no tags.
- def of[T](key: Key[T], value: T, tags: TagSet): Context
Creates a new Context instance with a single entry and the provided tags.
- def of[T](key: Key[T], value: T): Context
Creates a new Context instance with the provided key and no tags.
- def of(tagKey: String, tagValue: Boolean): Context
Creates a new Context instance with one tag.
- def of(tagKey: String, tagValue: Long): Context
Creates a new Context instance with one tag.
- def of(tagKey: String, tagValue: String): Context
Creates a new Context instance with one tag.
- def of(tags: TagSet): Context
Creates a new Context instance with the provided tags and no entries.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object Entry