Plex/src/main/java/dev/plex/services/AbstractService.java

26 lines
494 B
Java
Raw Normal View History

2021-01-03 07:21:15 +00:00
package dev.plex.services;
2022-03-03 23:24:15 +00:00
import dev.plex.PlexBase;
public abstract class AbstractService extends PlexBase implements IService
{
private boolean asynchronous;
2022-01-04 03:04:39 +00:00
private boolean repeating;
2022-01-04 03:04:39 +00:00
public AbstractService(boolean repeating, boolean async)
{
2022-01-04 03:04:39 +00:00
this.repeating = repeating;
this.asynchronous = async;
}
2022-01-30 21:03:47 +00:00
public boolean isRepeating()
{
2022-01-04 03:04:39 +00:00
return repeating;
}
2022-01-30 21:03:47 +00:00
public boolean isAsynchronous()
{
return asynchronous;
}
}