2021-01-03 07:21:15 +00:00
|
|
|
package dev.plex.services;
|
2020-11-10 02:47:03 +00:00
|
|
|
|
2022-03-03 23:24:15 +00:00
|
|
|
import dev.plex.PlexBase;
|
|
|
|
|
|
|
|
public abstract class AbstractService extends PlexBase implements IService
|
2020-11-10 02:47:03 +00:00
|
|
|
{
|
|
|
|
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-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()
|
|
|
|
{
|
2020-11-10 02:47:03 +00:00
|
|
|
return asynchronous;
|
|
|
|
}
|
|
|
|
}
|