final case class Chain(strategies: Seq[SamplingStrategy]) extends SamplingStrategy with Product with Serializable
Strategy that consists of a sequence of strategies combined together. A message is logged if it can be logged according to all strategies called in order. A strategy down the chain won't be invoked if the message is skipped by an earlier strategy. This allows combining strategies together in a useful way, for instance limiting the frequency of a log message, and the total number of logged messages:
- strategies
The strategies in the chain.
import com.here.platform.pipeline.logging._ import concurrent.duration._ val strategy = Chain(Seq(OneWithin(5.seconds), Limit(10000)))
Example:
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Chain
- Product
- Equals
- SamplingStrategy
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Chain(strategies: List[SamplingStrategy])
- new Chain(strategies: Seq[SamplingStrategy])
- strategies
The strategies in the chain.
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def instance: SamplingStrategyInstance
- Definition Classes
- Chain → SamplingStrategy
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val strategies: Seq[SamplingStrategy]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)