Class ServiceImpl
java.lang.Object
io.github.simplexdevelopment.scheduler.ExecutableService
io.github.simplexdevelopment.impl.ServiceImpl
- All Implemented Interfaces:
Identifier,IService,Runnable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.simplexdevelopment.scheduler.ExecutableService
getDelay, getName, getParentPool, getPeriod, isCancelled, isPeriodic, setCancelled, setParentPoolMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.simplexdevelopment.api.Identifier
getNumericalId, getUniqueId
-
Field Details
-
plugin
-
-
Constructor Details
-
ServiceImpl
-
-
Method Details
-
start
Description copied from interface:IServiceThe 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:IServiceThe 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.
-