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
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @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
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val strategies: Seq[SamplingStrategy]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()