Package io.reactivex.rxjava3.core
Class Scheduler.PeriodicDirectTask
- java.lang.Object
-
- io.reactivex.rxjava3.core.Scheduler.PeriodicDirectTask
-
- All Implemented Interfaces:
Disposable
,SchedulerRunnableIntrospection
,java.lang.Runnable
- Enclosing class:
- Scheduler
static final class Scheduler.PeriodicDirectTask extends java.lang.Object implements Disposable, java.lang.Runnable, SchedulerRunnableIntrospection
-
-
Constructor Summary
Constructors Constructor Description PeriodicDirectTask(@NonNull java.lang.Runnable run, @NonNull Scheduler.Worker worker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose the resource, the operation should be idempotent.java.lang.Runnable
getWrappedRunnable()
Returns the wrapped action.boolean
isDisposed()
Returns true if this resource has been disposed.void
run()
-
-
-
Field Detail
-
worker
@NonNull final @NonNull Scheduler.Worker worker
-
disposed
volatile boolean disposed
-
-
Constructor Detail
-
PeriodicDirectTask
PeriodicDirectTask(@NonNull @NonNull java.lang.Runnable run, @NonNull @NonNull Scheduler.Worker worker)
-
-
Method Detail
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
dispose
public void dispose()
Description copied from interface:Disposable
Dispose the resource, the operation should be idempotent.- Specified by:
dispose
in interfaceDisposable
-
isDisposed
public boolean isDisposed()
Description copied from interface:Disposable
Returns true if this resource has been disposed.- Specified by:
isDisposed
in interfaceDisposable
- Returns:
- true if this resource has been disposed
-
getWrappedRunnable
public java.lang.Runnable getWrappedRunnable()
Description copied from interface:SchedulerRunnableIntrospection
Returns the wrapped action.- Specified by:
getWrappedRunnable
in interfaceSchedulerRunnableIntrospection
- Returns:
- the wrapped action. Cannot be null.
-
-