Package rx.schedulers
Class TestScheduler.InnerTestScheduler
java.lang.Object
rx.Scheduler.Worker
rx.schedulers.TestScheduler.InnerTestScheduler
- All Implemented Interfaces:
Subscription
- Enclosing class:
TestScheduler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether thisSubscriptionis currently unsubscribed.longnow()Gets the current time, in milliseconds, according to this Scheduler.Schedules an Action for execution.Schedules an Action for execution at some point in the future.voidStops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.Methods inherited from class rx.Scheduler.Worker
schedulePeriodically
-
Field Details
-
s
-
-
Constructor Details
-
InnerTestScheduler
InnerTestScheduler()
-
-
Method Details
-
unsubscribe
public void unsubscribe()Description copied from interface:SubscriptionStops the receipt of notifications on theSubscriberthat was registered when this Subscription was received.This allows unregistering an
Subscriberbefore it has finished receiving all events (i.e. before onCompleted is called). -
isUnsubscribed
public boolean isUnsubscribed()Description copied from interface:SubscriptionIndicates whether thisSubscriptionis currently unsubscribed.- Returns:
trueif thisSubscriptionis currently unsubscribed,falseotherwise
-
schedule
Description copied from class:Scheduler.WorkerSchedules an Action for execution at some point in the future.Note to implementors: non-positive
delayTimeshould be regarded as undelayed schedule, i.e., as if theScheduler.Worker.schedule(rx.functions.Action0)was called.- Specified by:
schedulein classScheduler.Worker- Parameters:
action- the Action to scheduledelayTime- time to wait before executing the action; non-positive values indicate an undelayed scheduleunit- the time unit ofdelayTime- Returns:
- a subscription to be able to unsubscribe the action (unschedule it if not executed)
-
schedule
Description copied from class:Scheduler.WorkerSchedules an Action for execution.- Specified by:
schedulein classScheduler.Worker- Parameters:
action- Action to schedule- Returns:
- a subscription to be able to unsubscribe the action (unschedule it if not executed)
-
now
public long now()Description copied from class:Scheduler.WorkerGets the current time, in milliseconds, according to this Scheduler.- Overrides:
nowin classScheduler.Worker- Returns:
- the scheduler's notion of current absolute time in milliseconds
-