cronish.dsl

CronTask

class CronTask extends Runnable

a task that is can be scheduled

Linear Supertypes
Runnable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CronTask
  2. Runnable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CronTask(work: ⇒ Unit, description: Option[String] = scala.None, startHandler: Option[() ⇒ Unit] = scala.None, errHandler: Option[(Exception) ⇒ Unit] = scala.None, exitHandler: Option[() ⇒ Unit] = scala.None)

    creates a schedulable task

    creates a schedulable task

    work

    a function to be executed on schedule

    description

    a description

    startHandler

    a prehook to be executed before the scheduled function

    errHandler

    an exception handler to deal with the execution failure

    exitHandler

    a posthook to be executed after the scheduled function

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def catches(handler: (Exception) ⇒ Unit): CronTask

    add an execution handler and returns the modified task

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def describedAs(something: String): CronTask

    provide a description and returns the modified task

  10. val description: Option[String]

    a description

  11. def ends(handler: ⇒ Unit): CronTask

    add a finish posthook and returns the modified task

  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. val errHandler: Option[(Exception) ⇒ Unit]

    an exception handler to deal with the execution failure

  15. def executes(definition: Cron): Scheduled

    Schedule the task to run.

    Schedule the task to run.

    definition

    when to execute the task

  16. def executes(definition: String): Scheduled

    Schedule the task to run.

    Schedule the task to run.

    definition

    has to be a valid Cron definition

  17. val exitHandler: Option[() ⇒ Unit]

    a posthook to be executed after the scheduled function

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. def run(): Unit

    Definition Classes
    CronTask → Runnable
  26. def runs(definition: Cron): Scheduled

    Schedule the task to run.

    Schedule the task to run. Alias for executes.

    definition

    when to execute the task

  27. def runs(definition: String): Scheduled

    Schedule the task to run.

    Schedule the task to run. Alias for executes.

    definition

    has to be a valid Cron definition

  28. val startHandler: Option[() ⇒ Unit]

    a prehook to be executed before the scheduled function

  29. def starts(handler: ⇒ Unit): CronTask

    add a start prehook and returns the modified task

  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  31. def toString(): String

    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Runnable

Inherited from AnyRef

Inherited from Any

Ungrouped