Class Schedulers.Snapshot

java.lang.Object
reactor.core.scheduler.Schedulers.Snapshot
All Implemented Interfaces:
Disposable
Enclosing class:
Schedulers

public static final class Schedulers.Snapshot extends Object implements Disposable
It is also Disposable in case you don't want to restore the live Schedulers
  • Method Details

    • isDisposed

      public boolean isDisposed()
      Description copied from interface: Disposable
      Optionally 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:
      isDisposed in interface Disposable
      Returns:
      true when there's a guarantee the resource or task is disposed.
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Cancel or dispose the underlying task or resource.

      Implementations are required to make this method idempotent.

      Specified by:
      dispose in interface Disposable