Class ServiceImpl
java.lang.Object
io.github.simplexdevelopment.scheduler.ExecutableService
io.github.simplexdevelopment.impl.ServiceImpl
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ServicePool>
reactor.core.publisher.Mono<Void>
start()
The actual start method for the service.reactor.core.publisher.Mono<Void>
stop()
The actual end method for the service.Methods inherited from class io.github.simplexdevelopment.api.ExecutableService
getDelay, getNamespacedKey, getPeriod, isCancelled, isPeriodic, setCancelled
-
Field Details
-
plugin
-
-
Constructor Details
-
ServiceImpl
-
-
Method Details
-
start
Description copied from interface:IService
The actual start method for the service. This should be overridden by subclasses, and should include all the required code necessary to execute when the service is queued.- Returns:
- An encapsulated Mono object representing the start method for the service.
-
stop
Description copied from interface:IService
The actual end method for the service. This should be overridden by subclasses, and should include all the required code necessary to execute when the service is stopped.- Returns:
- An encapsulated Mono object representing the end method for the service.
-
getPlugin
- Returns:
- The plugin which was defined in the constructor. This should be an instance of your main plugin class.
-
getParentPool
- Specified by:
getParentPool
in interfaceIService
- Overrides:
getParentPool
in classExecutableService
- Returns:
- The
ServicePool
which this service is executing on.
-