public abstract class PeriodicBackgroundService extends LifecycleAdapter
| Modifier | Constructor and Description |
|---|---|
protected |
PeriodicBackgroundService(LockRepository lockRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
protected abstract int |
getCheckIntervalSeconds() |
protected String |
getLockName() |
protected String |
getThreadName() |
protected abstract void |
run() |
void |
start() |
init, onShutdown, shutdown, stopprotected PeriodicBackgroundService(LockRepository lockRepository)
public void start()
start in interface Lifecyclestart in class LifecycleAdapterprotected String getThreadName()
protected String getLockName()
protected abstract void run()
protected abstract int getCheckIntervalSeconds()
public void disable()
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.