Package reactor.core.scheduler
Class Schedulers.Snapshot
java.lang.Object
reactor.core.scheduler.Schedulers.Snapshot
- All Implemented Interfaces:
Disposable
- Enclosing class:
- Schedulers
It is also
Disposable in case you don't want to restore the live Schedulers-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.core.Disposable
Disposable.Composite, Disposable.Swap -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Cancel or dispose the underlying task or resource.booleanOptionally return true when the resource or task is disposed.
-
Method Details
-
isDisposed
public boolean isDisposed()Description copied from interface:DisposableOptionally return true when the resource or task is disposed.Implementations are not required to track disposition and as such may never return true even when disposed. However, they MUST only return true when there's a guarantee the resource or task is disposed.
- Specified by:
isDisposedin interfaceDisposable- Returns:
- true when there's a guarantee the resource or task is disposed.
-
dispose
public void dispose()Description copied from interface:DisposableCancel or dispose the underlying task or resource.Implementations are required to make this method idempotent.
- Specified by:
disposein interfaceDisposable
-