mirror of
https://github.com/SimplexDevelopment/SimplexSS.git
synced 2025-07-02 15:16:41 +00:00
Minor update
This commit is contained in:
@ -16,25 +16,25 @@ public interface ISchedule {
|
||||
* Queues a service to be executed in a service pool.
|
||||
*
|
||||
* @param service The service to use to locate the associated service pool and queue the service for execution.
|
||||
* @return A Mono<Disposable> that can be used to cancel the service.
|
||||
* @return A Mono object that can be used to cancel the service.
|
||||
*/
|
||||
@NotNull Mono<Disposable> queue(@NotNull IService service);
|
||||
|
||||
/**
|
||||
* @param service The service to run once.
|
||||
* @return A Mono<Void> object which can be used to run the service one time using {@link Mono#subscribe()}.
|
||||
* @return A Mono object which can be used to run the service one time using {@link Mono#subscribe()}.
|
||||
*/
|
||||
Mono<Void> runOnce(IService service);
|
||||
|
||||
/**
|
||||
* @param service The service to forcefully stop.
|
||||
* @return A Mono<Void> object which can be used to forcefully stop the service with {@link Mono#subscribe()}.
|
||||
* @return A Mono object which can be used to forcefully stop the service with {@link Mono#subscribe()}.
|
||||
*/
|
||||
Mono<Void> forceStop(IService service);
|
||||
|
||||
/**
|
||||
* @param service The service to forcefully start.
|
||||
* @return A Mono<Void> object which can be used to forcefully start the service with {@link Mono#subscribe()}.
|
||||
* @return A Mono object which can be used to forcefully start the service with {@link Mono#subscribe()}.
|
||||
*/
|
||||
Mono<Void> forceStart(IService service);
|
||||
}
|
@ -2,8 +2,6 @@ package io.github.simplexdevelopment.api;
|
||||
|
||||
import io.github.simplexdevelopment.scheduler.ServicePool;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
import org.jetbrains.annotations.Contract;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
public interface IService extends Runnable, Identifier {
|
||||
|
Reference in New Issue
Block a user