2021-01-03 07:21:15 +00:00
|
|
|
package dev.plex.services;
|
2020-11-10 02:47:03 +00:00
|
|
|
|
|
|
|
public abstract class AbstractService implements IService
|
|
|
|
{
|
|
|
|
private boolean asynchronous;
|
2022-01-04 03:04:39 +00:00
|
|
|
private boolean repeating;
|
2020-11-10 02:47:03 +00:00
|
|
|
|
2022-01-04 03:04:39 +00:00
|
|
|
public AbstractService(boolean repeating, boolean async)
|
2020-11-10 02:47:03 +00:00
|
|
|
{
|
2022-01-04 03:04:39 +00:00
|
|
|
this.repeating = repeating;
|
2020-11-10 02:47:03 +00:00
|
|
|
this.asynchronous = async;
|
|
|
|
}
|
|
|
|
|
2022-01-04 03:04:39 +00:00
|
|
|
public boolean isRepeating() {
|
|
|
|
return repeating;
|
|
|
|
}
|
|
|
|
|
2020-11-10 02:47:03 +00:00
|
|
|
public boolean isAsynchronous() {
|
|
|
|
return asynchronous;
|
|
|
|
}
|
|
|
|
}
|