Class SoulFireReactorScheduler
java.lang.Object
com.soulfiremc.server.script.SoulFireReactorScheduler
- All Implemented Interfaces:
reactor.core.Disposable, reactor.core.scheduler.Scheduler
public final class SoulFireReactorScheduler
extends Object
implements reactor.core.scheduler.Scheduler
Adapter that wraps SoulFireScheduler to implement Reactor's Scheduler interface.
This allows reactive pipelines to execute on SoulFire's virtual thread executor.
-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.core.Disposable
reactor.core.Disposable.Composite, reactor.core.Disposable.SwapNested classes/interfaces inherited from interface reactor.core.scheduler.Scheduler
reactor.core.scheduler.Scheduler.Worker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.scheduler.Scheduler.Workerreactor.core.Disposablereactor.core.Disposablereactor.core.DisposableschedulePeriodically(Runnable task, long initialDelay, long period, TimeUnit unit) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface reactor.core.Disposable
isDisposedMethods inherited from interface reactor.core.scheduler.Scheduler
dispose, disposeGracefully, init, now, start
-
Constructor Details
-
SoulFireReactorScheduler
-
-
Method Details
-
schedule
- Specified by:
schedulein interfacereactor.core.scheduler.Scheduler
-
schedule
-
schedulePeriodically
-
createWorker
public reactor.core.scheduler.Scheduler.Worker createWorker()- Specified by:
createWorkerin interfacereactor.core.scheduler.Scheduler
-