Class

io.reactors.services

Clock

Related Doc: package services

Permalink

class Clock extends Service

Contains various time-related services.

Linear Supertypes
Service, Reflectable, Protocol, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Clock
  2. Service
  3. Reflectable
  4. Protocol
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Clock(system: ReactorSystem)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Clock to any2stringadd[Clock] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Clock, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Clock to ArrowAssoc[Clock] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def countdown(n: Int, d: Duration): Signal[Int]

    Permalink

    Emits an event at regular intervals, until the specified count reaches zero.

    Emits an event at regular intervals, until the specified count reaches zero.

    Note that this event is fired eventually after duration d, and has similar semantics as that of java.util.Timer.

    The channel through which the event arrives is daemon.

    Once the countdown reaches 0, the resulting event stream unreacts, and the channel is sealed.

    n

    the starting value of the countdown

    d

    period between countdowns

    returns

    a signal with the countdown events

  9. def ensuring(cond: (Clock) ⇒ Boolean, msg: ⇒ Any): Clock

    Permalink
    Implicit information
    This member is added by an implicit conversion from Clock to Ensuring[Clock] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: (Clock) ⇒ Boolean): Clock

    Permalink
    Implicit information
    This member is added by an implicit conversion from Clock to Ensuring[Clock] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean, msg: ⇒ Any): Clock

    Permalink
    Implicit information
    This member is added by an implicit conversion from Clock to Ensuring[Clock] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean): Clock

    Permalink
    Implicit information
    This member is added by an implicit conversion from Clock to Ensuring[Clock] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Clock to StringFormat[Clock] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def periodic(d: Duration): Signal[Long]

    Permalink

    Emits an event periodically, with the duration between events equal to d.

    Emits an event periodically, with the duration between events equal to d.

    Note that these events are fired eventually, and have similar semantics as that of fixed-delay execution in java.util.Timer.

    The channel through which the events arrive is a daemon.

    d

    duration between events

    returns

    a signal with the index of the event

  24. def shutdown(): Unit

    Permalink
    Definition Classes
    ClockService
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. val system: ReactorSystem

    Permalink
    Definition Classes
    ClockProtocol
  27. def timeout(d: Duration): IVar[Unit]

    Permalink

    Emits an event after a timeout specified by the duration d.

    Emits an event after a timeout specified by the duration d.

    Note that this event is fired eventually after duration d, and has similar semantics as that of java.util.Timer.

    The channel through which the event arrives is daemon.

    d

    duration after which the timeout event fires

    returns

    a signal that emits the event on timeout

  28. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def [B](y: B): (Clock, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Clock to ArrowAssoc[Clock] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Service

Inherited from Reflectable

Inherited from Protocol

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Clock to any2stringadd[Clock]

Inherited by implicit conversion StringFormat from Clock to StringFormat[Clock]

Inherited by implicit conversion Ensuring from Clock to Ensuring[Clock]

Inherited by implicit conversion ArrowAssoc from Clock to ArrowAssoc[Clock]

Ungrouped