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-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;
|
|
|
|
}
|
|
|
|
}
|