Config

final class Config

See docs for custom sources

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def when(passes: () => Boolean): Config

Create a version of a config that only runs start / stop if the predicate passes.

Create a version of a config that only runs start / stop if the predicate passes.

  • start will be run when the CustomSource is about to start if passes returns true at that time
  • stop will be run when the CustomSource is about to stop if your start code ran the last time CustomSource started

Concrete fields

val onStart: () => Unit
val onStop: () => Unit
val onWillStart: () => Unit