Package io.github.simplex.api
Interface ISchedule
- All Known Implementing Classes:
SchedulingSystem
public interface ISchedule
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
forceStart
(IService service) reactor.core.publisher.Mono<Void>
reactor.core.publisher.Mono<ServiceManager>
reactor.core.publisher.Mono<ServicePool>
reactor.core.publisher.Mono<Void>
-
Method Details
-
getServiceManager
reactor.core.publisher.Mono<ServiceManager> getServiceManager()- Returns:
- The service manager which exerts control over the service pools and their associated services.
-
queue
- Parameters:
service
- The service to use to locate the associated service pool and queue the service for execution.- Returns:
- A Mono
that can be used to prepare the service for execution within it's associated service pool. If the service has no associated pool, a new pool will be created.
-
runOnce
- Parameters:
service
- The service to run once.- Returns:
- A Mono
object which can be used to run the service one time using Mono.subscribe()
.
-
forceStop
- Parameters:
service
- The service to forcefully stop.- Returns:
- A Mono
object which can be used to forcefully stop the service with Mono.subscribe()
.
-
forceStart
- Parameters:
service
- The service to forcefully start.- Returns:
- A Mono
object which can be used to forcefully start the service with Mono.subscribe()
.
-