Packages

c

com.mfglabs.stream

Debounce

case class Debounce[T](per: FiniteDuration, toHash: (T) ⇒ String) extends GraphStage[FlowShape[T, Debounced[T]]] with Product with Serializable

Implementation of a Debouncer The precision is not great, something around ~100ms It does not drop elements but wrap it in one of two classes

  • Debounced.Ok: the elemnt was not seen since at least per duration.
  • Debounced.Ko: the elemnt was seen less than per duration ago.
Source
Debounce.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Debounce
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GraphStage
  7. GraphStageWithMaterializedValue
  8. Graph
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Debounce(per: FiniteDuration, toHash: (T) ⇒ String)

Type Members

  1. type Shape = FlowShape[T, Debounced[T]]
    Definition Classes
    Graph

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAttributes(attr: Attributes): Graph[FlowShape[T, Debounced[T]], NotUsed]
    Definition Classes
    Graph
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def async: Graph[FlowShape[T, Debounced[T]], NotUsed]
    Definition Classes
    Graph
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createLogic(inheritedAttributes: Attributes): GraphStageLogic
    Definition Classes
    Debounce → GraphStage
  9. final def createLogicAndMaterializedValue(inheritedAttributes: Attributes): (GraphStageLogic, NotUsed)
    Definition Classes
    GraphStage → GraphStageWithMaterializedValue
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. val in: Inlet[T]
  14. def initialAttributes: Attributes
    Attributes
    protected
    Definition Classes
    GraphStageWithMaterializedValue
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final lazy val module: Module
    Definition Classes
    GraphStageWithMaterializedValue → Graph
  17. def named(name: String): Graph[FlowShape[T, Debounced[T]], NotUsed]
    Definition Classes
    Graph
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  21. val out: Outlet[Debounced[T]]
  22. val per: FiniteDuration
  23. val shape: FlowShape[T, Debounced[T]]
    Definition Classes
    Debounce → Graph
  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. val toHash: (T) ⇒ String
  26. def toString(): String
    Definition Classes
    Debounce → AnyRef → Any
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def withAttributes(attr: Attributes): Graph[FlowShape[T, Debounced[T]], NotUsed]
    Definition Classes
    GraphStageWithMaterializedValue → Graph

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GraphStage[FlowShape[T, Debounced[T]]]

Inherited from Graph[FlowShape[T, Debounced[T]], NotUsed]

Inherited from AnyRef

Inherited from Any

Ungrouped