final class AkkaTimer extends Timer
A timer implemented with an Akka Scheduler
.
- Annotations
- @deprecated
- Deprecated
(Since version 1.1) Timers are replaced by the Clock API
- Alphabetic
- By Inheritance
- AkkaTimer
- Timer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
AkkaTimer(scheduler: Scheduler)
- scheduler
The
Scheduler
instance to view as a timer.
Type Members
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
-
def
after(delay: FiniteDuration): Builder
Creates a builder capable of building timers that perform a task once or repeatedly after the specified delay.
Creates a builder capable of building timers that perform a task once or repeatedly after the specified delay.
- delay
The amount of time to wait before performing the task for the first time.
- Definition Classes
- Timer
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
every[U](interval: FiniteDuration)(f: ⇒ U)(implicit ec: ExecutionContext): Task
Performs a task after the specified delay and repeatedly thereafter, waiting the specified interval between invocations.
Performs a task after the specified delay and repeatedly thereafter, waiting the specified interval between invocations.
- U
Any type, treated as if it was
Unit
.- interval
The amount of time to wait before performing the task and between subsequent executions.
- f
The action to repeatedly perform.
- ec
The execution context to perform the action on.
- Definition Classes
- Timer
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
submit(delay: FiniteDuration, interval: Option[FiniteDuration], f: () ⇒ Unit)(implicit ec: ExecutionContext): Task
Submits a task for execution after the specified delay and possibly repeatedly thereafter, waiting the specified interval (if specified) between invocations.
Submits a task for execution after the specified delay and possibly repeatedly thereafter, waiting the specified interval (if specified) between invocations.
- delay
The amount of time to wait before performing the task for the first time.
- interval
A
Some
containing the amount of time to wait between subsequent executions orNone
.- f
The action to (possibly repeatedly) perform.
- ec
The execution context to perform the action on.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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( ... )